- patch from Denis Vlasenko to add and use bb_xchdir()
[oweals/busybox.git] / include / usage.h
index 22beeadf34f71e2646c62e0bb60236c579e4e2f0..d458936ca2c5f0b4b7662f496ce7f6e444fd2d90 100644 (file)
@@ -46,7 +46,7 @@
        "\t-v\t\tverbosely list files processed"
 
 #define arping_trivial_usage \
-       "[-fqbDUA] [-c count] [-w timeout] [-I device] [-s sender] target"
+       "[-fqbDUA] [-c count] [-w timeout] [-i device] [-s sender] target"
 #define arping_full_usage \
        "Ping hosts by ARP requests/replies.\n\n" \
        "Options:\n" \
@@ -58,7 +58,7 @@
        "\t-A\t\tARP answer mode, update your neighbours\n" \
        "\t-c count\tStop after sending count ARP request packets\n" \
        "\t-w timeout\tTime to wait for ARP reply, in seconds\n" \
-       "\t-I device\tOutgoing interface name, default is eth0\n" \
+       "\t-i device\tOutgoing interface name, default is eth0\n" \
        "\t-s sender\tSet specific sender IP address\n" \
        "\ttarget\t\tTarget IP address of ARP request"
 
 #define bbconfig_trivial_usage \
        ""
 #define bbconfig_full_usage \
-       "Print the config file which built busybox\n"
+       "Print the config file which built busybox"
 
 #define cp_trivial_usage \
        "[OPTION]... SOURCE DEST"
        "\nOptions:\n" \
        "\t-R\t\tOutputs RFC-822 compliant date string\n" \
        "\t-d STRING\tDisplays time described by STRING, not `now'\n" \
-       USAGE_DATE_ISOFMT("\t-I[TIMESPEC]\tOutputs an ISO-8601 compliant date/time string\n" \
-       "\t\t\tTIMESPEC=`date' (or missing) for date only,\n" \
-       "\t\t\t`hours', `minutes', or `seconds' for date and,\n" \
-       "\t\t\ttime to the indicated precision\n") \
+       USAGE_DATE_ISOFMT( \
+               "\t-I[TIMESPEC]\tOutputs an ISO-8601 compliant date/time string\n" \
+               "\t\t\tTIMESPEC=`date' (or missing) for date only,\n" \
+               "\t\t\t`hours', `minutes', or `seconds' for date and,\n" \
+               "\t\t\ttime to the indicated precision\n" \
+               "\t-D hint\t\tUse 'hint' as date format, via strptime()\n" \
+       ) \
        "\t-s\t\tSets time described by STRING\n" \
        "\t-r FILE\t\tDisplays the last modification time of FILE\n" \
        "\t-u\t\tPrints or sets Coordinated Universal Time"
        "Filesystem           1k-blocks      Used Available Use% Mounted on\n" \
        "/dev/sda3              8690864   8553540    137324  98% /\n"
 
+#define diff_trivial_usage \
+       "[-abdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2"
+#define diff_full_usage \
+       "Compare files line by line and output the differences between them.\n" \
+       "This diff implementation only supports unified diffs.\n\n" \
+       "Options:\n" \
+       "\t-a\tTreat all files as text\n" \
+       "\t-b\tIgnore changes in the amount of whitespace\n" \
+       "\t-d\tTry hard to find a smaller set of changes\n" \
+       "\t-i\tIgnore case differences\n" \
+       "\t-L\tUse LABEL instead of the filename in the unified header\n" \
+       "\t-N\tTreat absent files as empty\n" \
+       "\t-q\tOutput only whether files differ\n" \
+       "\t-r\tRecursively compare any subdirectories\n" \
+       "\t-S\tStart with FILE when comparing directories\n" \
+       "\t-T\tMake tabs line up by prefixing a tab when necessary\n" \
+       "\t-s\tReport when two files are the same\n" \
+       "\t-t\tExpand tabs to spaces in output\n" \
+       "\t-U\tOutput LINES lines of context\n" \
+       "\t-w\tIgnore all whitespace\n"
+
 #define dirname_trivial_usage \
        "FILENAME"
 #define dirname_full_usage \
 #define e2fsck_trivial_usage \
        "[-panyrcdfvstDFSV] [-b superblock] [-B blocksize] " \
        "[-I inode_buffer_blocks] [-P process_inode_size] " \
-       "[-l|-L bad_blocks_file] [-C fd] [-j ext-journal] " \
+       "[-l|-L bad_blocks_file] [-C fd] [-j external_journal] " \
        "[-E extended-options] device"
 #define e2fsck_full_usage \
        "Check a Linux ext2/ext3 file system.\n\n" \
        "Options:\n" \
        "\t-b\t\tSend wake-up packet to the broadcast address\n" \
        "\t-i iface\tUse interface ifname instead of the default \"eth0\"\n" \
-       "\t-p pass\tAppend the four or six byte password PW to the packet\n"
+       "\t-p pass\tAppend the four or six byte password PW to the packet"
 
 #define expr_trivial_usage \
        "EXPRESSION"
        "\t-s         Don't print or kill anything.\n" \
        "\t-4         When using port/proto only search IPv4 space\n" \
        "\t-6         When using port/proto only search IPv6 space\n" \
-       "\t-SIGNAL    When used with -k, this signal will be used to kill\n"
+       "\t-SIGNAL    When used with -k, this signal will be used to kill"
+
 #define getopt_trivial_usage \
        "[OPTIONS]..."
 #define getopt_full_usage \
        "Options:\n" \
        "\t-d\t\tdelay interval for halting\n" \
        "\t-n\t\tno call to sync()\n" \
-       "\t-f\t\tforce halt (don't go through init)\n"
+       "\t-f\t\tforce halt (don't go through init)"
 
 #ifdef CONFIG_FEATURE_HDPARM_GET_IDENTITY
 #define USAGE_HDPARM_IDENT(a) a
        "{ {add|del} IFADDR dev STRING | {show|flush}\n" \
        "\t\t[ dev STRING ] [ to PREFIX ] }"
 #define ipaddr_full_usage \
-       "ipaddr {add|del} IFADDR dev STRING\n" \
+       "ipaddr {add|delete} IFADDR dev STRING\n" \
        "ipaddr {show|flush} [ dev STRING ] [ scope SCOPE-ID ]\n" \
        "\t\t\t[ to PREFIX ] [ label PATTERN ]\n" \
        "\t\t\tIFADDR := PREFIX | ADDR peer PREFIX\n" \
        "to remove a segment by shmid value.\n" \
        "\t-m | -M\tRemove the memory segment after the last detatch\n" \
        "\t-q | -Q\tRemove the message queue\n" \
-       "\t-s | -S\tRemove the semaphore\n"
+       "\t-s | -S\tRemove the semaphore"
 
 #define ipcs_trivial_usage \
        "[[-smq] -i shmid] | [[-asmq] [-tclup]]"
        "\t-p\tpid\n" \
        "\t-s\tcreator\n" \
        "\t-a\tlimits\n" \
-       "\t-i\tsummary\n"
+       "\t-i\tsummary"
 
 #define iplink_trivial_usage \
        "{ set DEVICE { up | down | arp { on | off } | show [ DEVICE ] }"
        "\t\tfile\n" \
        "\t-~\tSuppress ~s displayed when input past the end of the file is\n" \
        "\t\treached.\n" \
-       "\t-h, -?\tDisplay this help message\n"
+       "\t-h, -?\tDisplay this help message"
+
+#define setarch_trivial_usage \
+       "<personality> <program> [args ...]"
+#define setarch_full_usage \
+       "Personality may be:\n" \
+       "\tlinux32\tSet 32bit uname emulation\n" \
+       "\tlinux64\tSet 64bit uname emulation"
 
 #define ln_trivial_usage \
        "[OPTION] TARGET... LINK_NAME|DIRECTORY"
        "\t-q\tQuiet output\n" \
        "\t-r\tRemove module (stacks) or do autoclean\n" \
        "\t-s\tReport via syslog instead of stderr\n" \
-       "\t-v\tVerbose output\n\n"
+       "\t-v\tVerbose output"
 #define modprobe_notes_usage \
 "modprobe can (un)load a stack of modules, passing each module options (when\n" \
 "loading). modprobe uses a configuration file to determine what option(s) to\n" \
        "Options:\n" \
        "\t-d\t\tdelay interval for halting\n" \
        "\t-n\t\tno call to sync()\n" \
-       "\t-f\t\tforce power off (don't go through init)\n"
+       "\t-f\t\tforce power off (don't go through init)"
 
 #define printenv_trivial_usage \
        "[VARIABLES...]"
        "Options:\n" \
        "\t-d\t\tdelay interval for rebooting\n" \
        "\t-n\t\tno call to sync()\n" \
-       "\t-f\t\tforce reboot (don't go through init)\n"
+       "\t-f\t\tforce reboot (don't go through init)"
 
 #define renice_trivial_usage \
        "{{-n INCREMENT} | PRIORITY} [[ -p | -g | -u ] ID ...]"
        "\t-a ARG\tPass ARG as an argument for every program invoked\n" \
        "\t-u MASK\tSet the umask to MASK before executing every program"
 
-#if BB_APPLET_RUNLEVEL
 #define runlevel_trivial_usage \
        "[utmp]"
 #define runlevel_full_usage \
 #define runlevel_example_usage \
        "$ runlevel /var/run/utmp\n" \
        "N 2"
-#endif
 
 #define rx_trivial_usage \
        "FILE"
 #define setkeycodes_example_usage \
        "$ setkeycodes e030 127\n"
 
+#define setlogcons_trivial_usage \
+       "N"
+#define setlogcons_full_usage \
+       "Redirects the kernel output to console N (0 for current)."
+
 #define setsid_trivial_usage \
        "program [arg ...]"
 #define setsid_full_usage \
        USAGE_SORT_BIG("\t-s\tstable (don't sort ties alphabetically)\n") \
        "\t-u\tsuppress duplicate lines" \
        USAGE_SORT_BIG("\n\t-z\tinput terminated by nulls, not newlines\n") \
-       USAGE_SORT_BIG("\t-mST\tignored for GNU compatability") \
+       USAGE_SORT_BIG("\t-mST\tignored for GNU compatibility") \
        ""
 #define sort_example_usage \
        "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \
        "[-L volume-label] [-M last-mounted-dir] [-O [^]feature[,...]] " \
        "[-T last-check-time] [-U UUID] device"
 #define tune2fs_full_usage \
-       "Adjust filesystem options on ext[23] filesystems.\n\n"
+       "Adjust filesystem options on ext[23] filesystems."
 
 #define udhcpc_trivial_usage \
        "[-Cfbnqtv] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE]\n[-p pidfile] [-r IP] [-s script]"
        "\t-f              foreground mode\n" \
        "\t-q              quit after address (no daemon)\n" \
        "\t-r 169.254.x.x  request this address first\n" \
-       "\t-v              verbose; show version\n"
+       "\t-v              verbose; show version"
 
 #endif /* __BB_USAGE_H__ */