diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-17 13:46:00 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-17 13:46:00 +0000 |
commit | e0c0b2ba7da94b3972d734a733156e92b856d794 (patch) | |
tree | c49d5af91d8f7905d6648515e1eb566651d47b5a /src/main.c | |
parent | debbcf81bb812b3170dc393296663bf9fac182e3 (diff) | |
download | curl-e0c0b2ba7da94b3972d734a733156e92b856d794.tar.gz |
fix the help text for --manual if built without manual
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c index 16c8e5f85..1e3712ed6 100644 --- a/src/main.c +++ b/src/main.c @@ -233,8 +233,11 @@ static void helpf(const char *fmt, ...) vfprintf(stderr, fmt, ap); va_end(ap); } - fprintf(stderr, "curl: try 'curl --help' or " - "'curl --manual' for more information\n"); + fprintf(stderr, "curl: try 'curl --help' " +#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(); return PARAM_HELP_REQUESTED; #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; #endif case 'n': |