diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-05-01 01:23:53 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-05-02 23:09:54 +0200 |
commit | 913c3c8f5476bd7bc4d8d00509396bd4b525b8fc (patch) | |
tree | 50672dc093fe88a8244d04849a8e48813cfc841e /src/tool_helpers.c | |
parent | f2d5d05893880bea6ae5951020ab47b7c581f8ec (diff) | |
download | curl-913c3c8f5476bd7bc4d8d00509396bd4b525b8fc.tar.gz |
curl: non-boolean command line args reject --no- prefixes
... and instead properly respond with an error message to the user
instead of silently ignoring.
Fixes #1453
Closes #1458
Diffstat (limited to 'src/tool_helpers.c')
-rw-r--r-- | src/tool_helpers.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tool_helpers.c b/src/tool_helpers.c index b5a619b91..3d2dbe3ac 100644 --- a/src/tool_helpers.c +++ b/src/tool_helpers.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -62,6 +62,8 @@ const char *param2text(int res) return "a specified protocol is unsupported by libcurl"; case PARAM_NO_MEM: return "out of memory"; + case PARAM_NO_PREFIX: + return "the given option can't be reversed with a --no- prefix"; default: return "unknown error"; } |