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

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