From 099f37e9c5779a5701735b40e7e4b09ce33a4786 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 15 Aug 2018 09:17:43 +0200 Subject: 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 --- tests/data/test1268 | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 tests/data/test1268 (limited to 'tests/data/test1268') diff --git a/tests/data/test1268 b/tests/data/test1268 new file mode 100644 index 000000000..f3e52fba4 --- /dev/null +++ b/tests/data/test1268 @@ -0,0 +1,38 @@ + + + +warning + + + +# +# Server-side + + + +# +# Client-side + + +none + + +file name argument looks like a flag + + +--stderr log/moo1268 --unix-socket -k hej://moo + + + + + +Warning: The file name argument '-k' looks like a flag. +curl: (1) Protocol "hej" not supported or disabled in libcurl + + +# we expect an error since we provide a weird URL + +1 + + + -- cgit v1.2.3