mirror of
https://github.com/moparisthebest/curl
synced 2024-11-15 22:15:13 -05:00
curl: --no-progress-meter
New option that allows a user to ONLY switch off curl's progress meter and leave everything else in "talkative" mode. Reported-by: Piotr Komborski Fixes #4422 Closes #4470
This commit is contained in:
parent
67bb7926ed
commit
93373a960c
8
docs/cmdline-opts/progress-meter.d
Normal file
8
docs/cmdline-opts/progress-meter.d
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
Long: progress-meter
|
||||||
|
Help: Show the progress meter
|
||||||
|
See-also: verbose silent
|
||||||
|
Added: 7.67.0
|
||||||
|
---
|
||||||
|
Option to only switch the progress meter output on or off (with
|
||||||
|
--no-progress-meter) without muting or otherwise affecting warning and
|
||||||
|
informational messages like --silent does.
|
@ -322,6 +322,7 @@ static const struct LongShort aliases[]= {
|
|||||||
{"Z", "parallel", ARG_BOOL},
|
{"Z", "parallel", ARG_BOOL},
|
||||||
{"Zb", "parallel-max", ARG_STRING},
|
{"Zb", "parallel-max", ARG_STRING},
|
||||||
{"#", "progress-bar", ARG_BOOL},
|
{"#", "progress-bar", ARG_BOOL},
|
||||||
|
{"#m", "progress-meter", ARG_BOOL},
|
||||||
{":", "next", ARG_NONE},
|
{":", "next", ARG_NONE},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1172,11 +1173,16 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case '#': /* --progress-bar */
|
case '#':
|
||||||
if(toggle)
|
switch(subletter) {
|
||||||
global->progressmode = CURL_PROGRESS_BAR;
|
case 'm': /* --progress-meter */
|
||||||
else
|
global->noprogress = !toggle;
|
||||||
global->progressmode = CURL_PROGRESS_STATS;
|
break;
|
||||||
|
default: /* --progress-bar */
|
||||||
|
global->progressmode =
|
||||||
|
toggle ? CURL_PROGRESS_BAR : CURL_PROGRESS_STATS;
|
||||||
|
break;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ':': /* --next */
|
case ':': /* --next */
|
||||||
return PARAM_NEXT_OPERATION;
|
return PARAM_NEXT_OPERATION;
|
||||||
|
@ -295,6 +295,8 @@ static const struct helptxt helptext[] = {
|
|||||||
"Use this proxy first"},
|
"Use this proxy first"},
|
||||||
{"-#, --progress-bar",
|
{"-#, --progress-bar",
|
||||||
"Display transfer progress as a bar"},
|
"Display transfer progress as a bar"},
|
||||||
|
{" --progress-meter",
|
||||||
|
"Show the progress meter"},
|
||||||
{" --proto <protocols>",
|
{" --proto <protocols>",
|
||||||
"Enable/disable PROTOCOLS"},
|
"Enable/disable PROTOCOLS"},
|
||||||
{" --proto-default <protocol>",
|
{" --proto-default <protocol>",
|
||||||
|
Loading…
Reference in New Issue
Block a user