mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
fix the help text for --manual if built without manual
This commit is contained in:
parent
debbcf81bb
commit
e0c0b2ba7d
10
src/main.c
10
src/main.c
@ -233,8 +233,11 @@ static void helpf(const char *fmt, ...)
|
|||||||
vfprintf(stderr, fmt, ap);
|
vfprintf(stderr, fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
fprintf(stderr, "curl: try 'curl --help' or "
|
fprintf(stderr, "curl: try 'curl --help' "
|
||||||
"'curl --manual' for more information\n");
|
#ifdef USE_MANUAL
|
||||||
|
"or 'curl --manual' "
|
||||||
|
#endif
|
||||||
|
"for more information\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1714,7 +1717,8 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||||||
hugehelp();
|
hugehelp();
|
||||||
return PARAM_HELP_REQUESTED;
|
return PARAM_HELP_REQUESTED;
|
||||||
#else
|
#else
|
||||||
helpf("built-in manual was disabled and build-time!\n");
|
fprintf(stderr,
|
||||||
|
"curl: built-in manual was disabled at build-time!\n");
|
||||||
return PARAM_OPTION_UNKNOWN;
|
return PARAM_OPTION_UNKNOWN;
|
||||||
#endif
|
#endif
|
||||||
case 'n':
|
case 'n':
|
||||||
|
Loading…
Reference in New Issue
Block a user