mirror of
https://github.com/curl/curl.git
synced 2026-08-26 04:43:35 +03:00
tool: Moved --showerror to the global config
Other global options such as --libcurl, --trace and --verbose to follow.
This commit is contained in:
parent
0704dd770d
commit
249dc83571
5 changed files with 17 additions and 14 deletions
|
|
@ -1619,15 +1619,15 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
config->mute = config->noprogress = TRUE;
|
||||
else
|
||||
config->mute = config->noprogress = FALSE;
|
||||
if(config->showerror < 0)
|
||||
if(global->showerror < 0)
|
||||
/* if still on the default value, set showerror to the reverse of
|
||||
toggle. This is to allow -S and -s to be used in an independent
|
||||
order but still have the same effect. */
|
||||
config->showerror = (!toggle)?TRUE:FALSE; /* toggle off */
|
||||
global->showerror = (!toggle)?TRUE:FALSE; /* toggle off */
|
||||
break;
|
||||
case 'S':
|
||||
/* show errors */
|
||||
config->showerror = toggle?1:0; /* toggle on if used with -s */
|
||||
global->showerror = toggle?1:0; /* toggle on if used with -s */
|
||||
break;
|
||||
case 't':
|
||||
/* Telnet options */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue