about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--netpbm.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/netpbm.c b/netpbm.c
index c47cb37e..7f3e7c96 100644
--- a/netpbm.c
+++ b/netpbm.c
@@ -29,13 +29,17 @@
 int
 main(int argc, char *argv[]) {
 
-    char* cp;
+    const char * cp;
     
     if (strcmp(pm_arg0toprogname(argv[0]), "netpbm") == 0) {
         ++argv;
         --argc;
         if (argc < 1 || !*argv)	{
-            fprintf(stderr, "Usage: netpbm netpbm_program_name [args ...]\n");
+            fprintf(stderr,
+                    "When you invoke this program by the name 'netpbm', "
+                    "You must supply at least one argument: the name of "
+                    "the Netpbm program to run, e.g. "
+                    "'netpbm pamfile /tmp/myfile.ppm'\n");
             exit(1);
 		}
 	}