mirror of
https://github.com/curl/curl.git
synced 2026-08-25 18:43:41 +03:00
tool_cfgable: Removed list_engine flag from config structure
In preparation for separating the global config options from the per operation config options, reworked the list engines code to not use a member variable in the Configurable structure.
This commit is contained in:
parent
b914e7ed02
commit
e6e8b14405
5 changed files with 14 additions and 13 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue