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:
Daniel Stenberg 2022-09-12 16:28:32 +02:00
parent ddda4fdf3d
commit a850b9edb9
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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':