Add usage messages for applets without them.
[oweals/busybox.git] / init / halt.c
index 2ca36d038eb1d653fe0e60a8548adece67e7ea1a..7baccf5d4ef885e8c4cac211de8030f5ff385e15 100644 (file)
@@ -26,6 +26,9 @@
 
 extern int halt_main(int argc, char **argv)
 {
+       if (argc > 1 && strcmp(argv[1], "--help") == 0)
+               usage(halt_usage);
+
 #ifdef BB_FEATURE_LINUXRC
        /* don't assume init's pid == 1 */
        return(kill(*(findPidByName("init")), SIGUSR1));