mirror of
https://github.com/curl/curl.git
synced 2026-07-25 12:17:18 +03:00
curl: added --styled-output
It is enabled by default, so --no-styled-output will switch off the detection/use of bold headers. Closes #2538
This commit is contained in:
parent
c1c27625c7
commit
f3d836b736
7 changed files with 19 additions and 5 deletions
|
|
@ -260,6 +260,7 @@ static const struct LongShort aliases[]= {
|
|||
{"EB", "socks5-gssapi", ARG_BOOL},
|
||||
{"f", "fail", ARG_BOOL},
|
||||
{"fa", "fail-early", ARG_BOOL},
|
||||
{"fb", "styled-output", ARG_BOOL},
|
||||
{"F", "form", ARG_STRING},
|
||||
{"Fs", "form-string", ARG_STRING},
|
||||
{"g", "globoff", ARG_BOOL},
|
||||
|
|
@ -1643,8 +1644,10 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
case 'a': /* --fail-early */
|
||||
global->fail_early = toggle;
|
||||
break;
|
||||
default:
|
||||
/* fail hard on errors */
|
||||
case 'b': /* --styled-output */
|
||||
global->styled_output = toggle;
|
||||
break;
|
||||
default: /* --fail (hard on errors) */
|
||||
config->failonerror = toggle;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue