diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-02-23 10:58:56 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-02-23 11:16:05 +0000 |
commit | 8c80840d0191f21b2e6c568b2346f68bc3fc0cf6 (patch) | |
tree | eef8137eed4014f29b1b7a7b72d6cdf704595e3c /src/tool_operate.c | |
parent | 24e22e1078f5c75927f00153ace4a296065dd738 (diff) |
tool_getparam: Moved tool_help() call into operate()
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index 8350c1df9..eaff86500 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1829,8 +1829,11 @@ CURLcode operate(struct Configurable *config, int argc, argv_item_t argv[]) if(res) { result = CURLE_OK; + /* Check if we were asked for the help */ + if(res == PARAM_HELP_REQUESTED) + tool_help(); /* Check if we were asked for the manual */ - if(res == PARAM_MANUAL_REQUESTED) + else if(res == PARAM_MANUAL_REQUESTED) hugehelp(); /* Check if we were asked for the version information */ else if(res == PARAM_VERSION_INFO_REQUESTED) @@ -1838,7 +1841,7 @@ CURLcode operate(struct Configurable *config, int argc, argv_item_t argv[]) /* Check if we were asked to list the SSL engines */ if(res == PARAM_ENGINES_REQUESTED) tool_list_engines(config->easy); - else if(res != PARAM_HELP_REQUESTED) + else result = CURLE_FAILED_INIT; } /* Perform the main operations */ |