X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fusage.h;h=d458936ca2c5f0b4b7662f496ce7f6e444fd2d90;hb=d9cf7ac781c1274d6d23fa5674b6b90baaf4cf61;hp=81f0e1d6d4fa0ce61873dc85997d3a4fef76a53a;hpb=72d1a2357d2168f241458e4d6cebb7589ac82f4f;p=oweals%2Fbusybox.git diff --git a/include/usage.h b/include/usage.h index 81f0e1d6d..d458936ca 100644 --- a/include/usage.h +++ b/include/usage.h @@ -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" @@ -72,9 +72,9 @@ "[OPTION]... [program-text] [FILE ...]" #define awk_full_usage \ "Options:\n" \ - "\t-v var=val\t\tassign value 'val' to variable 'var'\n" \ + "\t-v var=val\tassign value 'val' to variable 'var'\n" \ "\t-F sep\t\tuse 'sep' as field separator\n" \ - "\t-f progname\t\tread program source from file 'progname'" + "\t-f progname\tread program source from file 'progname'" #define basename_trivial_usage \ "FILE [SUFFIX]" @@ -97,11 +97,27 @@ "\t-c\tWrite output to standard output\n" \ "\t-f\tForce" +#define busybox_notes_usage \ + "Hello world!\n" + #define bzcat_trivial_usage \ "FILE" #define bzcat_full_usage \ "Uncompress to stdout." +#define unlzma_trivial_usage \ + "[OPTION]... [FILE]" +#define unlzma_full_usage \ + "Uncompress FILE (or standard input if FILE is '-' or omitted).\n\n" \ + "Options:\n" \ + "\t-c\tWrite output to standard output\n" \ + "\t-f\tForce" + +#define lzmacat_trivial_usage \ + "FILE" +#define lzmacat_full_usage \ + "Uncompress to stdout." + #define cal_trivial_usage \ "[-jy] [[month] year]" #define cal_full_usage \ @@ -234,7 +250,7 @@ #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" @@ -316,10 +332,13 @@ "\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" @@ -434,6 +453,27 @@ "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 \ @@ -453,6 +493,17 @@ "\t-n LEVEL\tSets console logging level\n" \ "\t-s SIZE\t\tUse a buffer of size SIZE" +#define dnsd_trivial_usage \ + "[-c config] [-t seconds] [-p port] [-i iface-ip] [-d]" +#define dnsd_full_usage \ + "Small and static DNS server daemon\n\n" \ + "Options:\n" \ + "\t-c\t\tconfig filename\n" \ + "\t-t\t\tTTL in seconds\n" \ + "\t-p\t\tlistening port\n" \ + "\t-i\t\tlistening iface ip (default all)\n" \ + "\t-d\t\tdaemonize" + #define dos2unix_trivial_usage \ "[option] [FILE]" #define dos2unix_full_usage \ @@ -549,7 +600,7 @@ #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" \ @@ -615,7 +666,7 @@ "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" @@ -857,7 +908,8 @@ "\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 \ @@ -983,11 +1035,13 @@ "-rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/busybox.tar.gz\n" #define halt_trivial_usage \ - "[-d]" + "[-d] [-n] [-f]" #define halt_full_usage \ "Halt the system.\n" \ "Options:\n" \ - "\t-d\t\tdelay interval for halting" + "\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)" #ifdef CONFIG_FEATURE_HDPARM_GET_IDENTITY #define USAGE_HDPARM_IDENT(a) a @@ -1458,7 +1512,7 @@ "{ {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" \ @@ -1492,7 +1546,7 @@ "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]]" @@ -1508,7 +1562,7 @@ "\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 ] }" @@ -1595,7 +1649,14 @@ "\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 \ + " [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" @@ -1851,14 +1912,14 @@ #define mdev_trivial_usage \ "[-s]" #define mdev_full_usage \ - "\ts\tScan /sys and populate /dev during system boot\n\n" \ + "\t-s\tScan /sys and populate /dev during system boot\n\n" \ "Called with no options (via hotplug) it uses environment variables\n" \ "to determine which device to add/remove." #ifdef CONFIG_FEATURE_MDEV_CONFIG #define mdev_notes_usage \ "The mdev config file contains lines that look like:\n" \ - " hd[a-z][0-9]* 0:3 660\n\n" \ - "That's device name (with regex match), uid:gid, and permissions.\n\n" \ + " hd[a-z][0-9]* 0:3 660\n\n" \ + "That's device name (with regex match), uid:gid, and permissions.\n\n" \ "Optionally, that can be followed (on the same line) by an asterisk\n" \ "and a command line to run after creating the corresponding device(s),\n"\ "ala:\n\n" \ @@ -1986,7 +2047,7 @@ "\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" \ @@ -2345,11 +2406,13 @@ "the new root file system." #define poweroff_trivial_usage \ - "[-d]" + "[-d] [-n] [-f]" #define poweroff_full_usage \ - "Halt the system and request that the kernel shut off the power.\n" \ + "Halt and shut off power.\n" \ "Options:\n" \ - "\t-d\t\tdelay interval for shutting off" + "\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)" #define printenv_trivial_usage \ "[VARIABLES...]" @@ -2448,11 +2511,13 @@ "Returns the absolute pathnames of given argument." #define reboot_trivial_usage \ - "[-d]" + "[-d] [-n] [-f]" #define reboot_full_usage \ "Reboot the system.\n" \ "Options:\n" \ - "\t-d\t\tdelay interval for rebooting" + "\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)" #define renice_trivial_usage \ "{{-n INCREMENT} | PRIORITY} [[ -p | -g | -u ] ID ...]" @@ -2540,7 +2605,6 @@ "\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 \ @@ -2550,7 +2614,6 @@ #define runlevel_example_usage \ "$ runlevel /var/run/utmp\n" \ "N 2" -#endif #define rx_trivial_usage \ "FILE" @@ -2606,6 +2669,11 @@ #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 \ @@ -2665,7 +2733,7 @@ USAGE_FANCY_SLEEP("$ sleep 1d 3h 22m 8s\n" \ "[98528 second delay results]\n") -#ifdef CONFIG_SORT_BIG +#if ENABLE_FEATURE_SORT_BIG # define USAGE_SORT_BIG(a) a #else # define USAGE_SORT_BIG(a) @@ -2696,7 +2764,7 @@ 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" \ @@ -2814,7 +2882,9 @@ #define su_full_usage \ "Change user id or become root.\n" \ "Options:\n" \ - "\t-p\tPreserve environment" + "\t-p, -m\tPreserve environment" \ + "\n\t-c\tCommand to pass to 'sh -c'" \ + "\n\t-s\tShell to use instead of default shell" #define sulogin_trivial_usage \ "[OPTION]... [tty-device]" @@ -2962,6 +3032,11 @@ #else # define USAGE_TAR_BZIP2(a) #endif +#ifdef CONFIG_FEATURE_TAR_LZMA +# define USAGE_TAR_LZMA(a) a +#else +# define USAGE_TAR_LZMA(a) +#endif #ifdef CONFIG_FEATURE_TAR_COMPRESS # define USAGE_TAR_COMPRESS(a) a #else @@ -2969,7 +3044,7 @@ #endif #define tar_trivial_usage \ - "-[" USAGE_TAR_CREATE("c") USAGE_TAR_GZIP("z") USAGE_TAR_BZIP2("j") USAGE_TAR_COMPRESS("Z") "xtvO] " \ + "-[" USAGE_TAR_CREATE("c") USAGE_TAR_GZIP("z") USAGE_TAR_BZIP2("j") USAGE_TAR_LZMA("a") USAGE_TAR_COMPRESS("Z") "xtvO] " \ USAGE_TAR_EXCLUDE("[-X FILE]") \ "[-f TARFILE] [-C DIR] [FILE(s)] ..." #define tar_full_usage \ @@ -2981,6 +3056,7 @@ "\nArchive format selection:\n" \ USAGE_TAR_GZIP("\tz\t\tFilter the archive through gzip\n") \ USAGE_TAR_BZIP2("\tj\t\tFilter the archive through bzip2\n") \ + USAGE_TAR_LZMA("\ta\t\tFilter the archive through lzma\n") \ USAGE_TAR_COMPRESS("\tZ\t\tFilter the archive through compress\n") \ "\nFile selection:\n" \ "\tf\t\tname of TARFILE or \"-\" for stdin\n" \ @@ -3195,10 +3271,10 @@ "[-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 \ - "[-Cfbnqv] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE]\n[-p pidfile] [-r IP] [-s script]" + "[-Cfbnqtv] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE]\n[-p pidfile] [-r IP] [-s script]" #define udhcpc_full_usage \ "\t-c,\t--clientid=CLIENTID\tSet client identifier\n" \ "\t-C,\t--clientid-none\tSuppress default client identifier\n" \ @@ -3213,6 +3289,7 @@ "\t-q,\t--quit\tQuit after obtaining lease\n" \ "\t-r,\t--request=IP\tIP address to request (default: none)\n" \ "\t-s,\t--script=file\tRun file at dhcp events (default: /usr/share/udhcpc/default.script)\n" \ + "\t-t,\t--retries=NUM\tSend up to NUM request packets\n"\ "\t-v,\t--version\tDisplay version" #define udhcpd_trivial_usage \ @@ -3481,6 +3558,6 @@ "\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__ */