]> granicus.if.org Git - curl/commitdiff
fix the help text for --manual if built without manual
authorDaniel Stenberg <daniel@haxx.se>
Tue, 17 Feb 2004 13:46:00 +0000 (13:46 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 17 Feb 2004 13:46:00 +0000 (13:46 +0000)
src/main.c

index 16c8e5f8521b54c0a6320a79a5f7b76ae83740e2..1e3712ed6cfce5b5a3afd62f411b510cb212747c 100644 (file)
@@ -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':