Add usage messages for applets without them.
[oweals/busybox.git] / coreutils / hostid.c
index f1010a65d524fa11301801018d22a7138478b3e6..3bf79de473fef8df7895754fc4d51147000fc9e5 100644 (file)
@@ -25,6 +25,9 @@
 
 extern int hostid_main(int argc, char **argv)
 {
+       if (argc > 1 && strcmp(argv[1], "--help") == 0)
+               usage(hostid_usage);
+
        printf("%lx\n", gethostid());
        return(TRUE);
 }