mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
curl: only warn once for --manual in manual-disabled build
It would previously say it twice. Closes #17441
This commit is contained in:
parent
ed07f59841
commit
9b89fd6db7
@ -2806,10 +2806,6 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
||||
break;
|
||||
case C_MANUAL: /* --manual */
|
||||
if(toggle) { /* --no-manual shows no manual... */
|
||||
#ifndef USE_MANUAL
|
||||
warnf(global,
|
||||
"built-in manual was disabled at build-time");
|
||||
#endif
|
||||
err = PARAM_MANUAL_REQUESTED;
|
||||
}
|
||||
break;
|
||||
|
||||
@ -2254,7 +2254,8 @@ CURLcode operate(struct GlobalConfig *global, int argc, argv_item_t argv[])
|
||||
#ifdef USE_MANUAL
|
||||
hugehelp();
|
||||
#else
|
||||
puts("built-in manual was disabled at build-time");
|
||||
warnf(global,
|
||||
"built-in manual was disabled at build-time");
|
||||
#endif
|
||||
}
|
||||
/* Check if we were asked for the version information */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user