mirror of
https://github.com/curl/curl.git
synced 2026-08-24 18:23:33 +03:00
tool: Moved --progress-bar to the global config
This commit is contained in:
parent
5513bbd5c3
commit
75e996f29f
3 changed files with 15 additions and 15 deletions
|
|
@ -983,9 +983,9 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
break;
|
||||
case '#': /* --progress-bar */
|
||||
if(toggle)
|
||||
config->progressmode = CURL_PROGRESS_BAR;
|
||||
global->progressmode = CURL_PROGRESS_BAR;
|
||||
else
|
||||
config->progressmode = CURL_PROGRESS_STATS;
|
||||
global->progressmode = CURL_PROGRESS_STATS;
|
||||
break;
|
||||
case ':': /* --next */
|
||||
return PARAM_NEXT_OPERATION;
|
||||
|
|
@ -1619,9 +1619,9 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
case 's':
|
||||
/* don't show progress meter, don't show errors : */
|
||||
if(toggle)
|
||||
global->mute = config->noprogress = TRUE;
|
||||
global->mute = global->noprogress = TRUE;
|
||||
else
|
||||
global->mute = config->noprogress = FALSE;
|
||||
global->mute = global->noprogress = FALSE;
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue