diff options
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index 0a3c4f6ac..f6ebf5f3e 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1826,14 +1826,13 @@ CURLcode operate(struct Configurable *config, int argc, argv_item_t argv[]) /* Parse the command line arguments */ ParameterError res = parse_args(config, argc, argv); if(res) { - if(res != PARAM_HELP_REQUESTED) + result = CURLE_OK; + + /* 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) result = CURLE_FAILED_INIT; - else - result = CURLE_OK; - } - /* Check if we were asked to list the SSL engines */ - else if(config->list_engines) { - tool_list_engines(config->easy); } /* Perform the main operations */ else { |