curl: only warn once for --manual in manual-disabled build

It would previously say it twice.

Closes #17441
This commit is contained in:
Daniel Stenberg 2025-05-24 15:32:33 +02:00
parent ed07f59841
commit 9b89fd6db7
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 2 additions and 5 deletions

View File

@ -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;

View File

@ -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 */