Patch from Matt Kraai to enable proxy support.
[oweals/busybox.git] / usage.c
diff --git a/usage.c b/usage.c
index 51ab9a813146af620b12640c52d4a0ac7594875b..35d69df42347c1871c818256a30d8deb0c51dc8d 100644 (file)
--- a/usage.c
+++ b/usage.c
@@ -140,9 +140,10 @@ const char date_usage[] =
        "  or:  date [OPTION] [MMDDhhmm[[CC]YY][.ss]]\n"
 #ifndef BB_FEATURE_TRIVIAL_HELP
        "\nDisplays the current time in the given FORMAT, or sets the system date.\n"
-       "\nOptions:\n\t-R\tOutputs RFC-822 compliant date string\n"
-       "\t-s\tSets time described by STRING\n"
-       "\t-u\tPrints or sets Coordinated Universal Time\n"
+       "\nOptions:\n\t-R\t\tOutputs RFC-822 compliant date string\n"
+       "\t-d STRING\tdisplay time described by STRING, not `now'\n"
+       "\t-s\t\tSets time described by STRING\n"
+       "\t-u\t\tPrints or sets Coordinated Universal Time\n"
 #endif
        ;
 #endif
@@ -160,7 +161,7 @@ const char dc_usage[] =
 
 #if defined BB_DD
 const char dd_usage[] =
-       "dd [if=FILE] [of=FILE] [bs=N] [count=N] [skip=N] [seek=N]\n"
+       "dd [if=FILE] [of=FILE] [bs=N] [count=N] [skip=N] [seek=N] [conv=notrunc|sync]\n"
 #ifndef BB_FEATURE_TRIVIAL_HELP
        "\nCopy a file, converting and formatting according to options\n\n"
        "\tif=FILE\tread from FILE instead of stdin\n"
@@ -170,6 +171,7 @@ const char dd_usage[] =
        "\tskip=N\tskip N input blocks\n"
        "\tseek=N\tskip N output blocks\n"
        "\tconv=notrunc\t dont truncate of at end of write\n"
+       "\tconv=sync\t pad the last block with zeros until blocksize\n"
        "\n"
        "Numbers may be suffixed by w (x2), k (x1024), b (x512), or M (x1024^2)\n"
 #endif
@@ -375,6 +377,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"
@@ -1040,6 +1060,15 @@ const char rmmod_usage[] =
        ;
 #endif
 
+#if defined BB_RPMUNPACK
+const char rpmunpack_usage[] =
+       "rpmunpack < package.rpm | gunzip | cpio -idmuv\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+       "\nExtracts an rpm archive.\n"
+#endif
+       ;
+#endif
+
 #if defined BB_SED
 const char sed_usage[] =
        "sed [-Vhnef] pattern [files...]\n"
@@ -1164,7 +1193,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"
@@ -1190,11 +1218,11 @@ const char tar_usage[] =
 #endif
 #if defined BB_FEATURE_TAR_EXCLUDE
        "[--exclude File] "
+        "[-X File]"
 #endif
        "[-f tarFile] [FILE(s)] ...\n"
 #ifndef BB_FEATURE_TRIVIAL_HELP
-       "\nCreate, extract, or list files from a tar file.  Note that\n"
-       "this version of tar treats hard links as separate files.\n\n"
+       "\nCreate, extract, or list files from a tar file.\n\n"
        "Main operation mode:\n"
 #ifdef BB_FEATURE_TAR_CREATE
        "\tc\t\tcreate\n"
@@ -1206,6 +1234,7 @@ const char tar_usage[] =
        "\tO\t\textract to stdout\n"
 #if defined BB_FEATURE_TAR_EXCLUDE
        "\texclude\t\tfile to exclude\n"
+        "\tX\t\tfile with names to exclude\n"
 #endif
        "\nInformative output:\n"
        "\tv\t\tverbosely list files processed\n"
@@ -1348,15 +1377,6 @@ const char unix2dos_usage[] =
        ;
 #endif
 
-#if defined BB_UNRPM
-const char unrpm_usage[] =
-       "unrpm < package.rpm | gzip -d | cpio -idmuv\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
-       "\nExtracts an rpm archive.\n"
-#endif
-       ;
-#endif
-
 #if defined BB_UPDATE
 const char update_usage[] =
        "update [options]\n"
@@ -1456,11 +1476,9 @@ const char whoami_usage[] =
 #endif
 
 #if defined BB_XARGS
-const char xargs_usage[] = "xargs [OPTIONS] [COMMAND] [ARGS...]\n"
+const char xargs_usage[] = "xargs [COMMAND] [ARGS...]\n"
 #ifndef BB_FEATURE_TRIVIAL_HELP
-       "\nExecutes COMMAND on every item given by standard input.\n\n" 
-       "Options:\n"
-       "\t-t\tPrint the command just before it is run\n"
+       "\nExecutes COMMAND on every item given by standard input.\n" 
 #endif
        ;
 #endif
@@ -1473,3 +1491,4 @@ const char yes_usage[] =
 #endif
        ;
 #endif
+