Now, what was that logic block doing up there?
[oweals/busybox.git] / usage.c
diff --git a/usage.c b/usage.c
index 51ab9a813146af620b12640c52d4a0ac7594875b..7e3ea81915563a96b76c97ac75470cf5214d6fff 100644 (file)
--- a/usage.c
+++ b/usage.c
@@ -375,6 +375,24 @@ const char fsck_minix_usage[] =
        ;
 #endif
 
+#if defined BB_GETOPT
+const char getopt_usage[] =
+"getopt [OPTIONS]...\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+"Parse command options\n"
+"  -a, --alternative            Allow long options starting with single -\n"
+"  -l, --longoptions=longopts   Long options to be recognized\n"
+"  -n, --name=progname          The name under which errors are reported\n"
+"  -o, --options=optstring      Short options to be recognized\n"
+"  -q, --quiet                  Disable error reporting by getopt(3)\n"
+"  -Q, --quiet-output           No normal output\n"
+"  -s, --shell=shell            Set shell quoting conventions\n"
+"  -T, --test                   Test for getopt(1) version\n"
+"  -u, --unqote                 Do not quote the output\n"
+#endif
+;
+#endif
+
 #if defined BB_GREP
 const char grep_usage[] =
        "grep [-ihHnqvs] pattern [files...]\n"
@@ -1164,7 +1182,6 @@ const char tail_usage[] =
        "\t-c=N[kbm]\toutput the last N bytes\n"
 #endif
        "\t-n NUM\t\tPrint last NUM lines instead of first 10\n"
-       "\t\t\tAlso can be -NUM or +NUM.\n"
        "\t-f\t\tOutput data as the file grows.\n"
 #ifndef BB_FEATURE_SIMPLE_TAIL
        "\t-q\t\tnever output headers giving file names\n"
@@ -1473,3 +1490,4 @@ const char yes_usage[] =
 #endif
        ;
 #endif
+