Make empire and files not print usage on bad option
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 16 Jan 2010 08:22:48 +0000 (09:22 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 19 Jan 2010 07:40:42 +0000 (08:40 +0100)
Point to -h instead.  This is consistent with the other programs.

src/client/main.c
src/util/files.c

index 46c2f8448300dd387fb55208840e33edaba41aee..06d60cd85b8af8e61b0849f7575e3eab69770a39 100644 (file)
@@ -107,7 +107,7 @@ main(int argc, char **argv)
            printf("%s\n\n%s", version, legal);
            exit(0);
        default:
-           print_usage(argv[0]);
+           fprintf(stderr, "Try -h for help.\n");
            exit(1);
        }
     }
index 777ee56a70a5df489dd970968b8b91029a966e35..03ad037f257c12ab3502a83e54ce808e80c159a2 100644 (file)
@@ -100,7 +100,7 @@ main(int argc, char *argv[])
            printf("%s\n\n%s", version, legal);
            exit(0);
        default:
-           print_usage(argv[0]);
+           fprintf(stderr, "Try -h for help.\n");
            exit(1);
        }
     }