summaryrefslogtreecommitdiff
path: root/usage.c
diff options
context:
space:
mode:
authorMatt Kraai2000-07-19 18:01:00 +0000
committerMatt Kraai2000-07-19 18:01:00 +0000
commit2f46b664b7d7b51319d21b7c2d6b3ca817f5e1c4 (patch)
treed728fbd078450989fefcce5d372db867899e3056 /usage.c
parent91a4400fd5a74c6e954b22b276dd38c7ffaeae33 (diff)
downloadbusybox-2f46b664b7d7b51319d21b7c2d6b3ca817f5e1c4.zip
busybox-2f46b664b7d7b51319d21b7c2d6b3ca817f5e1c4.tar.gz
Add usage messages for applets without them.
Diffstat (limited to 'usage.c')
-rw-r--r--usage.c89
1 files changed, 89 insertions, 0 deletions
diff --git a/usage.c b/usage.c
index d5a34ec..56ea80d 100644
--- a/usage.c
+++ b/usage.c
@@ -83,6 +83,15 @@ const char chvt_usage[] =
;
#endif
+#if defined BB_CLEAR
+const char clear_usage[] =
+ "clear\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+ "\nClear screen.\n"
+#endif
+ ;
+#endif
+
#if defined BB_CP_MV
const char cp_usage[] =
"cp [OPTION]... SOURCE DEST\n"
@@ -241,6 +250,15 @@ const char echo_usage[] =
;
#endif
+#if defined BB_TRUE_FALSE
+const char false_usage[] =
+ "false\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+ "\nReturn an exit code of FALSE (1).\n"
+#endif
+ ;
+#endif
+
#if defined BB_FDFLUSH
const char fdflush_usage[] =
"fdflush DEVICE\n"
@@ -340,6 +358,14 @@ const char gzip_usage[] =
;
#endif
+#if defined BB_HALT
+const char halt_usage[] =
+ "halt\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+ "\nHalt the system.\n"
+#endif
+ ;
+
#if defined BB_HEAD
const char head_usage[] =
"head [OPTION] [FILE]...\n"
@@ -353,6 +379,15 @@ const char head_usage[] =
;
#endif
+#if defined BB_HOSTID
+const char hostid_usage[] =
+ "hostid\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+ "\nPrint out a unique 32-bit identifier for the machine.\n"
+#endif
+ ;
+#endif
+
#if defined BB_HOSTNAME
const char hostname_usage[] =
"hostname [OPTION] {hostname | -F file}\n"
@@ -549,6 +584,15 @@ const char ls_usage[] =
;
#endif
+#if defined BB_LSMOD
+const char lsmod_usage[] =
+ "lsmod\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+ "\nList the currently loaded kernel modules.\n"
+#endif
+ ;
+#endif
+
#if defined BB_MAKEDEVS
const char makedevs_usage[] =
"makedevs NAME TYPE MAJOR MINOR FIRST LAST [s]\n"
@@ -767,6 +811,15 @@ const char ping_usage[] =
#endif
#endif
+#if defined BB_POWEROFF
+const char poweroff_usage[] =
+ "poweroff\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+ "\nHalt the system and request that the kernel shut off the power.\n"
+#endif
+ ;
+#endif
+
#if defined BB_PRINTF
const char printf_usage[] =
"printf FORMAT [ARGUMENT...]\n"
@@ -787,6 +840,24 @@ const char ps_usage[] =
;
#endif
+#if defined BB_PWD
+const char pwd_usage[] =
+ "pwd\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+ "\nPrint the full filename of the current working directory.\n"
+#endif
+ ;
+#endif
+
+#if defined BB_REBOOT
+const char reboot_usage[] =
+ "reboot\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+ "\nReboot the system.\n"
+#endif
+ ;
+#endif
+
#if defined BB_RM
const char rm_usage[] =
"rm [OPTION]... FILE...\n"
@@ -1055,6 +1126,15 @@ const char tr_usage[] =
;
#endif
+#if defined BB_TRUE_FALSE
+const char true_usage[] =
+ "true\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+ "\nReturn an exit code of TRUE (0).\n"
+#endif
+ ;
+#endif
+
#if defined BB_TTY
const char tty_usage[] =
"tty\n"
@@ -1129,6 +1209,15 @@ const char update_usage[] =
;
#endif
+#if defined BB_UPTIME
+const char uptime_usage[] =
+ "uptime\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+ "\nDisplay the time since the last boot.\n"
+#endif
+ ;
+#endif
+
#if defined BB_USLEEP
const char usleep_usage[] =
"usleep N\n"