]> granicus.if.org Git - curl/commit
curl: warn the user if a given file name looks like an option
authorDaniel Stenberg <daniel@haxx.se>
Wed, 15 Aug 2018 07:17:43 +0000 (09:17 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 15 Aug 2018 21:05:14 +0000 (23:05 +0200)
commit099f37e9c5779a5701735b40e7e4b09ce33a4786
treef790921a827ac157c1399552ac505ed14ef54ef8
parentac86eabdbeef84c27f3351e1f72903552d9fb851
curl: warn the user if a given file name looks like an option

... simply because this is usually a sign of the user having omitted the
file name and the next option is instead "eaten" by the parser as a file
name.

Add test1268 to verify

Closes #2885
src/tool_getparam.c
tests/data/Makefile.inc
tests/data/test1268 [new file with mode: 0644]