aboutsummaryrefslogtreecommitdiff
path: root/usage.c
diff options
context:
space:
mode:
Diffstat (limited to 'usage.c')
-rw-r--r--usage.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/usage.c b/usage.c
index 11326432c..7e3ea8191 100644
--- a/usage.c
+++ b/usage.c
@@ -375,6 +375,24 @@ const char fsck_minix_usage[] =
375 ; 375 ;
376#endif 376#endif
377 377
378#if defined BB_GETOPT
379const 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
379const char grep_usage[] = 397const 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