diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-02-23 17:19:45 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-02-26 20:42:30 +0000 |
commit | 1a9b58fcb2264c942ea56691fd3ad1228ee1fcb0 (patch) | |
tree | 1925300caf3238d7eb460dfe01d74c8b53fd6402 /src | |
parent | 3228deff400a88ae752e86805c76c53ca1476acf (diff) |
tool_getparam: Added initial support for --next/-:
Added initial support for --next/-: which will be used to replace the
rather confusing : command line operation what was used for the URL
specific options prototype.
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_getparam.c | 3 | ||||
-rw-r--r-- | src/tool_getparam.h | 1 | ||||
-rw-r--r-- | src/tool_help.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c index 5e907416b..a1033e8b3 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -267,6 +267,7 @@ static const struct LongShort aliases[]= { {"y", "speed-time", TRUE}, {"z", "time-cond", TRUE}, {"#", "progress-bar", FALSE}, + {":", "next", FALSE}, {"~", "xattr", FALSE}, }; @@ -986,6 +987,8 @@ ParameterError getparameter(char *flag, /* f or -long-flag */ else config->progressmode = CURL_PROGRESS_STATS; break; + case ':': /* --next */ + return PARAM_NEXT_OPERATION; case '~': /* --xattr */ config->xattr = toggle; break; diff --git a/src/tool_getparam.h b/src/tool_getparam.h index 9ecd35401..ef4366b7f 100644 --- a/src/tool_getparam.h +++ b/src/tool_getparam.h @@ -38,6 +38,7 @@ typedef enum { PARAM_NEGATIVE_NUMERIC, PARAM_LIBCURL_DOESNT_SUPPORT, PARAM_NO_MEM, + PARAM_NEXT_OPERATION, PARAM_LAST } ParameterError; diff --git a/src/tool_help.c b/src/tool_help.c index 3f93b7736..cbe644419 100644 --- a/src/tool_help.c +++ b/src/tool_help.c @@ -138,6 +138,8 @@ static const char *const helptext[] = { " -n, --netrc Must read .netrc for user name and password", " --netrc-optional Use either .netrc or URL; overrides -n", " --netrc-file FILE Set up the netrc filename to use", + " -: --next " + "Allows the following URL to use a separate set of options", " --no-alpn Disable the ALPN TLS extension (H)", " -N, --no-buffer Disable buffering of the output stream", " --no-keepalive Disable keepalive use on the connection", |