diff options
Diffstat (limited to 'applets')
-rw-r--r-- | applets/busybox.c | 4 | ||||
-rw-r--r-- | applets/usage.c | 19 |
2 files changed, 21 insertions, 2 deletions
diff --git a/applets/busybox.c b/applets/busybox.c index d25ddc185..21b8a110e 100644 --- a/applets/busybox.c +++ b/applets/busybox.c | |||
@@ -110,7 +110,7 @@ const struct BB_applet applets[] = { | |||
110 | {"fsck.minix", fsck_minix_main, _BB_DIR_SBIN, fsck_minix_usage}, | 110 | {"fsck.minix", fsck_minix_main, _BB_DIR_SBIN, fsck_minix_usage}, |
111 | #endif | 111 | #endif |
112 | #ifdef BB_GETOPT | 112 | #ifdef BB_GETOPT |
113 | {"getopt", getopt_main, _BB_DIR_BIN}, | 113 | {"getopt", getopt_main, _BB_DIR_BIN, getopt_usage}, |
114 | #endif | 114 | #endif |
115 | #ifdef BB_GREP | 115 | #ifdef BB_GREP |
116 | {"grep", grep_main, _BB_DIR_BIN, grep_usage}, | 116 | {"grep", grep_main, _BB_DIR_BIN, grep_usage}, |
@@ -245,7 +245,7 @@ const struct BB_applet applets[] = { | |||
245 | {"reboot", reboot_main, _BB_DIR_SBIN, reboot_usage}, | 245 | {"reboot", reboot_main, _BB_DIR_SBIN, reboot_usage}, |
246 | #endif | 246 | #endif |
247 | #ifdef BB_RENICE | 247 | #ifdef BB_RENICE |
248 | {"renice", renice_main, _BB_DIR_USR_BIN}, | 248 | {"renice", renice_main, _BB_DIR_USR_BIN, renice_usage}, |
249 | #endif | 249 | #endif |
250 | #ifdef BB_RESET | 250 | #ifdef BB_RESET |
251 | {"reset", reset_main, _BB_DIR_USR_BIN, reset_usage}, | 251 | {"reset", reset_main, _BB_DIR_USR_BIN, reset_usage}, |
diff --git a/applets/usage.c b/applets/usage.c index 11326432c..7e3ea8191 100644 --- a/applets/usage.c +++ b/applets/usage.c | |||
@@ -375,6 +375,24 @@ const char fsck_minix_usage[] = | |||
375 | ; | 375 | ; |
376 | #endif | 376 | #endif |
377 | 377 | ||
378 | #if defined BB_GETOPT | ||
379 | const char getopt_usage[] = | ||
380 | "getopt [OPTIONS]...\n" | ||
381 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
382 | "Parse command options\n" | ||
383 | " -a, --alternative Allow long options starting with single -\n" | ||
384 | " -l, --longoptions=longopts Long options to be recognized\n" | ||
385 | " -n, --name=progname The name under which errors are reported\n" | ||
386 | " -o, --options=optstring Short options to be recognized\n" | ||
387 | " -q, --quiet Disable error reporting by getopt(3)\n" | ||
388 | " -Q, --quiet-output No normal output\n" | ||
389 | " -s, --shell=shell Set shell quoting conventions\n" | ||
390 | " -T, --test Test for getopt(1) version\n" | ||
391 | " -u, --unqote Do not quote the output\n" | ||
392 | #endif | ||
393 | ; | ||
394 | #endif | ||
395 | |||
378 | #if defined BB_GREP | 396 | #if defined BB_GREP |
379 | const char grep_usage[] = | 397 | const char grep_usage[] = |
380 | "grep [-ihHnqvs] pattern [files...]\n" | 398 | "grep [-ihHnqvs] pattern [files...]\n" |
@@ -1472,3 +1490,4 @@ const char yes_usage[] = | |||
1472 | #endif | 1490 | #endif |
1473 | ; | 1491 | ; |
1474 | #endif | 1492 | #endif |
1493 | |||