mirror of
https://github.com/curl/curl.git
synced 2026-07-25 02:37:18 +03:00
getparameter: return PARAM_MANUAL_REQUESTED for -M even when disabled
... to improve the output in this situation. Now it doesn't say "option unknown" anymore. Closes #9485
This commit is contained in:
parent
ddda4fdf3d
commit
a850b9edb9
1 changed files with 2 additions and 4 deletions
|
|
@ -2045,13 +2045,11 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
break;
|
||||
case 'M': /* M for manual, huge help */
|
||||
if(toggle) { /* --no-manual shows no manual... */
|
||||
#ifdef USE_MANUAL
|
||||
return PARAM_MANUAL_REQUESTED;
|
||||
#else
|
||||
#ifndef USE_MANUAL
|
||||
warnf(global,
|
||||
"built-in manual was disabled at build-time!\n");
|
||||
return PARAM_OPTION_UNKNOWN;
|
||||
#endif
|
||||
return PARAM_MANUAL_REQUESTED;
|
||||
}
|
||||
break;
|
||||
case 'n':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue