multibuild.pl saves us again. unix2dos requires that dos2unix
[oweals/busybox.git] / usage.h
diff --git a/usage.h b/usage.h
index 9d1db5950f6a2a188fcf8ac9e99f03e4f3f12c17..13759d23f5195be13339f7732b3e7f0d515a47d1 100644 (file)
--- a/usage.h
+++ b/usage.h
@@ -12,7 +12,7 @@
        "\t-p timeconstant\n"
 
 #define ar_trivial_usage \
-       "-[ov] [ptx] ARCHIVE FILES"
+       "-[ov][ptx] ARCHIVE FILES"
 #define ar_full_usage \
        "Extract or list FILES from an ar archive.\n\n" \
        "Options:\n" \
        "\t-f\tforce (implied; ignored) - always set\n" \
        "\t-R\tCopies directories recursively"
 
+#define cpio_trivial_usage \
+       "-[dimtuv][F cpiofile]"
+#define cpio_full_usage \
+       "Extract or list files from a cpio archive\n" \
+       "Main operation mode:\n" \
+       "\td\t\tmake leading directories\n" \
+       "\ti\t\textract\n" \
+       "\tm\t\tpreserve mtime\n" \
+       "\tt\t\tlist\n" \
+       "\tu\t\tunconditional overwrite\t" \
+       "\tF\t\tinput from file\t"
+       
 #define cut_trivial_usage \
        "[OPTION]... [FILE]..."
 #define cut_full_usage \
        "\t-d\toutput will be in DOS format"
 
 #define dpkg_trivial_usage \
-       "[-i|-r|--unpack|--configure] my.deb"
+       "-i package_file\n"
+       "[-CPru] package_name"
 #define dpkg_full_usage \
-       "WORK IN PROGRESS, only useful for debian-installer"
+       "\t-i\tInstall the package\n" \
+       "\t-C\tConfigure an unpackaged package\n" \
+       "\t-P\tPurge all files of a package\n" \
+       "\t-r\tRemove all but the configuration files for a package\n" \
+       "\t-u\tUnpack a package, but dont configure it\n"
 
 #define dpkg_deb_trivial_usage \
        "[-cefItxX] FILE [argument]"
        "$ ls -la /tmp/temp.mWiLjM\n" \
        "-rw-------    1 andersen andersen        0 Apr 25 17:10 /tmp/temp.mWiLjM\n" 
 
+#define modprobe_trivial_usage \
+       "[FILE ...]"
+#define modprobe_full_usage \
+       "Used for hight level module loading and unloading."
+#define modprobe_example_usage \
+       "$ modprobe cdrom\n" 
+
 #define more_trivial_usage \
        "[FILE ...]"
 #define more_full_usage \
        "221 foobar closing connection\n" 
 
 #define nslookup_trivial_usage \
-       "[HOST]"
+       "[HOST] [SERVER]"
 #define nslookup_full_usage \
-       "Queries the nameserver for the IP address of the given HOST"
+       "Queries the nameserver for the IP address of the given HOST\n" \
+       "optionally using a specified DNS server"
 #define nslookup_example_usage \
        "$ nslookup localhost\n" \
        "Server:     default\n" \
        "Name:       debian\n" \
        "Address:    127.0.0.1\n" 
 
+#define pidof_trivial_usage \
+       "process-name [process-name ...]"
+#define pidof_full_usage \
+       "Lists the PIDs of all processes with names that match the names on the command line"
+#define pidof_example_usage \
+       "$ pidof init\n" \
+       "1\n"
+
 #ifndef BB_FEATURE_FANCY_PING
 #define ping_trivial_usage "host"
 #define ping_full_usage    "Send ICMP ECHO_REQUEST packets to network hosts"
 #define route_full_usage \
        "Edit the kernel's routing tables"
 
+#define rpm2cpio_trivial_usage \
+       "package.rpm"
+#define rpm2cpio_full_usage \
+       "Outputs a cpio archive of the rpm file."
+
 #define rpmunpack_trivial_usage \
        "< package.rpm | gunzip | cpio -idmuv"
 #define rpmunpack_full_usage \
        "Extracts an rpm archive."
-
+       
 #define sed_trivial_usage \
-       "[-Vhnef] pattern [files...]"
+       "[-nef] pattern [files...]"
 #define sed_full_usage \
        "Options:\n" \
        "\t-n\t\tsuppress automatic printing of pattern space\n" \
        "\t-e script\tadd the script to the commands to be executed\n" \
        "\t-f scriptfile\tadd the contents of script-file to the commands to be executed\n" \
-       "\t-h\t\tdisplay this help message\n" \
        "\n" \
        "If no -e or -f is given, the first non-option argument is taken as the\n" \
        "sed script to interpret. All remaining arguments are names of input\n" \
 #define setkeycodes_example_usage \
        "$ setkeycodes e030 127\n"
 
-#define sh_trivial_usage \
+#define lash_trivial_usage \
        "[FILE]...\n" \
        "or: sh -c command [args]..."
-#define sh_full_usage \
+#define lash_full_usage \
        "lash: The BusyBox LAme SHell (command interpreter)"
-#define sh_notes_usage \
+#define lash_notes_usage \
 "This command does not yet have proper documentation.\n" \
 "\n" \
 "Use lash just as you would use any other shell.  It properly handles pipes,\n" \
 #define tar_trivial_usage \
        "-[" USAGE_TAR_CREATE("c") "xtvO] " \
        USAGE_TAR_EXCLUDE("[--exclude FILE] [-X FILE]") \
-       "[-f TARFILE] [FILE(s)] ..."
+       "[-f TARFILE] [-C DIR] [FILE(s)] ..."
 #define tar_full_usage \
        "Create, extract, or list files from a tar file.\n\n" \
-       "Main operation mode:\n" \
+       "Options:\n" \
        USAGE_TAR_CREATE("\tc\t\tcreate\n") \
        "\tx\t\textract\n" \
        "\tt\t\tlist\n" \
        "\texclude\t\tfile to exclude\n" \
         "\tX\t\tfile with names to exclude\n" \
        ) \
-       "\nInformative output:\n" \
+       "\tC\t\tchange to directory DIR before operation\n" \
        "\tv\t\tverbosely list files processed"
 #define tar_example_usage \
        "$ zcat /tmp/tarball.tar.gz | tar -xf -\n" \
        "$ echo "gdkkn vnqkc" | tr [a-y] [b-z]\n" \
        "hello world\n" 
 
+#define traceroute_trivial_usage \
+       "[-dnrv] [-m max_ttl] [-p port#] [-q nqueries]\n\
+       [-s src_addr] [-t tos] [-w wait] host [data size]"
+#define traceroute_full_usage \
+       "trace the route ip packets follow going to \"host\"\n" \
+       "Options:\n" \
+       "\t-d\tset SO_DEBUG options to socket\n" \
+       "\t-n\tPrint hop addresses numerically rather than symbolically\n" \
+       "\t-r\tBypass the normal routing tables and send directly to a host\n" \
+       "\t-v\tVerbose output\n" \
+       "\t-m max_ttl\tSet the max time-to-live (max number of hops)\n" \
+       "\t-p port#\tSet the base UDP port number used in probes\n" \
+       "\t\t(default is 33434)\n" \
+       "\t-q nqueries\tSet the number of probes per ``ttl'' to nqueries\n" \
+       "\t\t(default is 3)\n" \
+       "\t-s src_addr\tUse the following IP address as the source address\n" \
+       "\t-t tos\tSet the type-of-service in probe packets to the following value\n" \
+       "\t\t(default 0)\n" \
+       "\t-w wait\tSet the time (in seconds) to wait for a response to a probe\n" \
+       "\t\t(default 3 sec.)."
+
+
 #define true_trivial_usage \
        ""
 #define true_full_usage \
        "     31      46    1365 /etc/passwd\n" 
 
 #define wget_trivial_usage \
-       "[-c|--continue] [-q|--quiet] [-O|--output-document file] [--header 'header: value'] url"
+       "[-c|--continue] [-q|--quiet] [-O|--output-document file]\n\t[--header 'header: value'] [-P DIR] url"
 #define wget_full_usage \
        "wget retrieves files via HTTP or FTP\n\n" \
        "Options:\n" \
        "\t-c\tcontinue retrieval of aborted transfers\n" \
        "\t-q\tquiet mode - do not print\n" \
+       "\t-P\tSet directory prefix to DIR\n" \
        "\t-O\tsave to filename ('-' for stdout)"
 
 #define which_trivial_usage \