Make cin be static
[oweals/busybox.git] / usage.c
diff --git a/usage.c b/usage.c
index 864891797c5dc245c904a3bf7c85c9c8005963a1..a27ff92e2527b6cea9947448ef1016b3f9313405 100644 (file)
--- a/usage.c
+++ b/usage.c
@@ -190,9 +190,22 @@ const char deallocvt_usage[] =
 
 #if defined BB_DF
 const char df_usage[] =
-       "df [filesystem ...]"
+       "df [-?"
+#ifdef BB_FEATURE_HUMAN_READABLE
+       "hm"
+#endif
+       "k] [filesystem ...]\n"
 #ifndef BB_FEATURE_TRIVIAL_HELP
        "\n\nPrint the filesystem space used and space available."
+       "Options:\n"
+       "\t-?\tshow usage information\n"
+#ifdef BB_FEATURE_HUMAN_READABLE
+       "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n"
+       "\t-m\tprint sizes in megabytes\n"
+       "\t-k\tprint sizes in kilobytes(default)\n"
+#else
+       "\t-k\tprint sizes in kilobytes(compatability)\n"
+#endif
 #endif
        ;
 #endif
@@ -244,13 +257,25 @@ const char dpkg_deb_usage[] =
 
 #if defined BB_DU
 const char du_usage[] =
-       "du [OPTION]... [FILE]..."
+       "du [-?ls"
+#ifdef BB_FEATURE_HUMAN_READABLE
+       "hm"
+#endif
+       "k] [FILE]...\n"
 #ifndef BB_FEATURE_TRIVIAL_HELP
        "\n\nSummarizes disk space used for each FILE and/or directory.\n"
        "Disk space is printed in units of 1024 bytes.\n\n"
        "Options:\n"
+        "\t-?\tshow usage information\n"
        "\t-l\tcount sizes many times if hard linked\n"
        "\t-s\tdisplay only a total for each argument"
+#ifdef BB_FEATURE_HUMAN_READABLE
+       "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n"
+       "\t-m\tprint sizes in megabytes\n"
+       "\t-k\tprint sizes in kilobytes(default)\n"
+#else
+       "\t-k\tprint sizes in kilobytes(compatability)\n"
+#endif
 #endif
        ;
 #endif
@@ -507,6 +532,7 @@ const char id_usage[] =
        "Options:\n"
        "\t-g\tprints only the group ID\n"
        "\t-u\tprints only the user ID\n"
+       "\t-n\tprint a name instead of a number (with for -ug)\n"
        "\t-r\tprints the real user ID instead of the effective ID (with -ug)"
 #endif
        ;
@@ -520,7 +546,9 @@ const char insmod_usage[] =
        "Options:\n"
        "\t-f\tForce module to load into the wrong kernel version.\n"
        "\t-k\tMake module autoclean-able.\n"
-       "\t-v\tverbose output\n" "\t-x\tdo not export externs"
+       "\t-v\tverbose output\n" 
+       "\t-L\tLock to prevent simultaneous loads of a module\n"
+       "\t-x\tdo not export externs"
 #endif
        ;
 #endif
@@ -661,7 +689,10 @@ const char ls_usage[] =
 #ifdef BB_FEATURE_LS_SORTFILES
        "X"
 #endif
-       "] [filenames...]"
+#ifdef BB_FEATURE_HUMAN_READABLE
+       "h"
+#endif
+       "k] [filenames...]\n"
 #ifndef BB_FEATURE_TRIVIAL_HELP
        "\n\nList directory contents\n\n"
        "Options:\n"
@@ -716,6 +747,14 @@ const char ls_usage[] =
 #ifdef BB_FEATURE_LS_SORTFILES
        "\t-X\tsort the listing by extension\n"
 #endif
+
+#ifdef BB_FEATURE_HUMAN_READABLE
+       "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n"
+       "\t-k\tprint sizes in kilobytes(default)\n"
+#else
+       "\t-k\tprint sizes in kilobytes(compatability)"
+#endif
+
 #endif /*  BB_FEATURE_TRIVIAL_HELP */
        ;
 #endif /* BB_LS */
@@ -1448,6 +1487,15 @@ const char uuencode_usage[] =
        ;
 #endif
 
+#if defined BB_WATCHDOG
+const char watchdog_usage[] =
+       "watchdog dev\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+       "\nPeriodically write to watchdog device \"dev\".\n"
+#endif
+       ;
+#endif
+
 #if defined BB_WC
 const char wc_usage[] =
        "wc [OPTION]... [FILE]..."