blob: b39fec9242f42b4356a3a52b311138682552f70e [file] [log] [blame]
Eric Andersen7e9276b2001-02-22 01:15:47 +00001#define ar_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +00002 "-[ovR]{ptx} archive filenames"
Eric Andersen7e9276b2001-02-22 01:15:47 +00003#define ar_full_usage \
4 "Extract or list files from an ar archive.\n\n" \
5 "Options:\n" \
6 "\t-o\t\tpreserve original dates\n" \
7 "\t-p\t\textract to stdout\n" \
8 "\t-t\t\tlist\n" \
9 "\t-x\t\textract\n" \
10 "\t-v\t\tverbosely list files processed\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000011 "\t-R\t\trecursive action"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000012
Eric Andersen7e9276b2001-02-22 01:15:47 +000013#define basename_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000014 "FILE [SUFFIX]"
Eric Andersen7e9276b2001-02-22 01:15:47 +000015#define basename_full_usage \
16 "Strips directory path and suffixes from FILE.\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000017 "If specified, also removes any trailing SUFFIX."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000018
Eric Andersen7e9276b2001-02-22 01:15:47 +000019#define cat_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000020 "[FILE]..."
Eric Andersen7e9276b2001-02-22 01:15:47 +000021#define cat_full_usage \
22 "Concatenates FILE(s) and prints them to stdout."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000023
Eric Andersen7e9276b2001-02-22 01:15:47 +000024#define chgrp_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000025 "[OPTION]... GROUP FILE..."
Eric Andersen7e9276b2001-02-22 01:15:47 +000026#define chgrp_full_usage \
27 "Change the group membership of each FILE to GROUP.\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000028 "\nOptions:\n\t-R\tChanges files and directories recursively."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000029
Eric Andersen7e9276b2001-02-22 01:15:47 +000030#define chmod_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000031 "[-R] MODE[,MODE]... FILE..."
Eric Andersen7e9276b2001-02-22 01:15:47 +000032#define chmod_full_usage \
33 "Each MODE is one or more of the letters ugoa, one of the symbols +-= and\n" \
34 "one or more of the letters rwxst.\n\n" \
Eric Andersen3d20f772001-02-17 16:49:00 +000035 "Options:\n\t-R\tChanges files and directories recursively."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000036
Eric Andersen7e9276b2001-02-22 01:15:47 +000037#define chown_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000038 "[OPTION]... OWNER[<.|:>[GROUP] FILE..."
Eric Andersen7e9276b2001-02-22 01:15:47 +000039#define chown_full_usage \
40 "Change the owner and/or group of each FILE to OWNER and/or GROUP.\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000041 "\nOptions:\n\t-R\tChanges files and directories recursively."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000042
Eric Andersen7e9276b2001-02-22 01:15:47 +000043#define chroot_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000044 "NEWROOT [COMMAND...]"
Eric Andersen7e9276b2001-02-22 01:15:47 +000045#define chroot_full_usage \
46 "Run COMMAND with root directory set to NEWROOT."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000047
Eric Andersen7e9276b2001-02-22 01:15:47 +000048#define chvt_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000049 "N"
Eric Andersen7e9276b2001-02-22 01:15:47 +000050#define chvt_full_usage \
51 "Changes the foreground virtual terminal to /dev/ttyN"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000052
Eric Andersen7e9276b2001-02-22 01:15:47 +000053#define clear_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000054 ""
Eric Andersen7e9276b2001-02-22 01:15:47 +000055#define clear_full_usage \
56 "Clear screen."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000057
Eric Andersen7e9276b2001-02-22 01:15:47 +000058#define cmp_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000059 "FILE1 [FILE2]"
Eric Andersen7e9276b2001-02-22 01:15:47 +000060#define cmp_full_usage \
61 "Compare files."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000062
Eric Andersen7e9276b2001-02-22 01:15:47 +000063#define cp_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000064 "[OPTION]... SOURCE DEST\n"
Eric Andersen7e9276b2001-02-22 01:15:47 +000065#define cp_full_usage \
66 "Copies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n" \
67 "\n" \
68 "\t-a\tSame as -dpR\n" \
69 "\t-d\tPreserves links\n" \
70 "\t-p\tPreserves file attributes if possible\n" \
71 "\t-f\tforce (implied; ignored) - always set\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000072 "\t-R\tCopies directories recursively"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000073
Eric Andersen7e9276b2001-02-22 01:15:47 +000074#define cut_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000075 "[OPTION]... [FILE]..."
Eric Andersen7e9276b2001-02-22 01:15:47 +000076#define cut_full_usage \
77 "Prints selected fields from each input FILE to standard output.\n\n" \
78 "Options:\n" \
79 "\t-b LIST\tOutput only bytes from LIST\n" \
80 "\t-c LIST\tOutput only characters from LIST\n" \
81 "\t-d CHAR\tUse CHAR instead of tab as the field delimiter\n" \
82 "\t-s\tOutput only the lines containing delimiter\n" \
83 "\t-f N\tPrint only these fields\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000084 "\t-n\tIgnored"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000085
Eric Andersen7e9276b2001-02-22 01:15:47 +000086#define date_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000087 "[OPTION]... [+FORMAT]\n"
Eric Andersen7e9276b2001-02-22 01:15:47 +000088#define date_full_usage \
89 "Displays the current time in the given FORMAT, or sets the system date.\n" \
90 "\nOptions:\n\t-R\t\tOutputs RFC-822 compliant date string\n" \
91 "\t-d STRING\tdisplay time described by STRING, not `now'\n" \
92 "\t-s\t\tSets time described by STRING\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000093 "\t-u\t\tPrints or sets Coordinated Universal Time"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000094
Eric Andersen7e9276b2001-02-22 01:15:47 +000095#define dc_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +000096 "expression ..."
Eric Andersen7e9276b2001-02-22 01:15:47 +000097#define dc_full_usage \
98 "This is a Tiny RPN calculator that understands the\n" \
99 "following operations: +, -, /, *, and, or, not, eor.\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000100 "i.e. 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000101
Eric Andersen7e9276b2001-02-22 01:15:47 +0000102#define dd_trivial_usage \
103 "[if=FILE] [of=FILE] [bs=N] [count=N] [skip=N] [seek=N] [conv=notrunc|sync]"
104#define dd_full_usage \
105 "Copy a file, converting and formatting according to options\n\n" \
106 "\tif=FILE\tread from FILE instead of stdin\n" \
107 "\tof=FILE\twrite to FILE instead of stdout\n" \
108 "\tbs=N\tread and write N bytes at a time\n" \
109 "\tcount=N\tcopy only N input blocks\n" \
110 "\tskip=N\tskip N input blocks\n" \
111 "\tseek=N\tskip N output blocks\n" \
112 "\tconv=notrunc\tdon't truncate output file\n" \
113 "\tconv=sync\tpad blocks with zeros\n" \
114 "\n" \
115 "Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024),\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000116 "MD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000117
Eric Andersen7e9276b2001-02-22 01:15:47 +0000118#define deallocvt_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000119 "N"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000120#define deallocvt_full_usage \
121 "Deallocate unused virtual terminal /dev/ttyN"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000122
Eric Andersen7e9276b2001-02-22 01:15:47 +0000123
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000124#ifdef BB_FEATURE_HUMAN_READABLE
Eric Andersen7e9276b2001-02-22 01:15:47 +0000125 #define USAGE_HUMAN_READABLE(a,b) a
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000126#else
Eric Andersen7e9276b2001-02-22 01:15:47 +0000127 #define USAGE_HUMAN_READABLE(a,b) b
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000128#endif
Eric Andersen7e9276b2001-02-22 01:15:47 +0000129#define df_trivial_usage \
130 "[-" \
131 USAGE_HUMAN_READABLE("hm", "") \
132 "k] [filesystem ...]\n"
133#define df_full_usage \
134 "Print the filesystem space used and space available.\n\n" \
135 "Options:\n" \
136USAGE_HUMAN_READABLE( \
137 "\n\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" \
138 "\t-m\tprint sizes in megabytes\n" \
139 "\t-k\tprint sizes in kilobytes(default)", \
140 "\n\t-k\tprint sizes in kilobytes(compatability)")
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000141
Eric Andersen7e9276b2001-02-22 01:15:47 +0000142#define dirname_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000143 "[FILENAME ...]"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000144#define dirname_full_usage \
145 "Strips non-directory suffix from FILENAME"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000146
Eric Andersen7e9276b2001-02-22 01:15:47 +0000147#define dmesg_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000148 "[-c] [-n LEVEL] [-s SIZE]"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000149#define dmesg_full_usage \
150 "Prints or controls the kernel ring buffer\n\n" \
151 "Options:\n" \
152 "\t-c\t\tClears the ring buffer's contents after printing\n" \
153 "\t-n LEVEL\tSets console logging level\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000154 "\t-s SIZE\t\tUse a buffer of size SIZE"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000155
Eric Andersen7e9276b2001-02-22 01:15:47 +0000156#define dos2unix_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000157 "< dosfile > unixfile"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000158#define dos2unix_full_usage \
159 "Converts a text file from dos format to unix format."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000160
Eric Andersen7e9276b2001-02-22 01:15:47 +0000161#define dpkg_trivial_usage \
162 "[-i|-r|--unpack|--configure] my.deb"
163#define dpkg_full_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000164 "WORK IN PROGRESS, only usefull for debian-installer"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000165
Eric Andersen7e9276b2001-02-22 01:15:47 +0000166#define dpkg_deb_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000167 "[-cexX] file directory"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000168#define dpkg_deb_full_usage \
169 "Perform actions on debian packages (.debs)\n\n" \
170 "Options:\n" \
171 "\t-c\tList contents of filesystem tree (verbose)\n" \
172 "\t-l\tList contents of filesystem tree (.list format)\n" \
173 "\t-e\tExtract control files to directory\n" \
174 "\t-x\tExctract packages filesystem tree to directory\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000175 "\t-X\tVerbose extract"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000176
Eric Andersen7e9276b2001-02-22 01:15:47 +0000177#define du_trivial_usage \
178 "[-ls" USAGE_HUMAN_READABLE("hm", "") "k] [FILE]..."
179#define du_full_usage \
180 "Summarizes disk space used for each FILE and/or directory.\n" \
181 "Disk space is printed in units of 1024 bytes.\n\n" \
182 "Options:\n" \
183 "\t-l\tcount sizes many times if hard linked\n" \
184 "\t-s\tdisplay only a total for each argument" \
185USAGE_HUMAN_READABLE( \
186 "\n\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" \
187 "\t-m\tprint sizes in megabytes\n" \
188 "\t-k\tprint sizes in kilobytes(default)" \
189 , \
190 "\n\t-k\tprint sizes in kilobytes(compatability)" \
191 )
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000192
Eric Andersen7e9276b2001-02-22 01:15:47 +0000193#define dumpkmap_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000194 "> keymap"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000195#define dumpkmap_full_usage \
196 "Prints out a binary keyboard translation table to standard output."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000197
Eric Andersen7e9276b2001-02-22 01:15:47 +0000198#define dutmp_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000199 "[FILE]"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000200#define dutmp_full_usage \
201 "Dump utmp file format (pipe delimited) from FILE\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000202 "or stdin to stdout. (i.e. 'dutmp /var/run/utmp')"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000203
Eric Andersen7e9276b2001-02-22 01:15:47 +0000204#define echo_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000205 "[-neE] [ARG ...]"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000206#define echo_full_usage \
207 "Prints the specified ARGs to stdout\n\n" \
208 "Options:\n" \
209 "\t-n\tsuppress trailing newline\n" \
210 "\t-e\tinterpret backslash-escaped characters (i.e. \\t=tab etc)\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000211 "\t-E\tdisable interpretation of backslash-escaped characters"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000212
Eric Andersen7e9276b2001-02-22 01:15:47 +0000213#define expr_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000214 "EXPRESSION"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000215#define expr_full_usage \
216 "Prints the value of EXPRESSION to standard output.\n\n" \
217 "EXPRESSION may be:\n" \
218 "ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n" \
219 "ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0\n" \
220 "ARG1 < ARG2 ARG1 is less than ARG2\n" \
221 "ARG1 <= ARG2 ARG1 is less than or equal to ARG2\n" \
222 "ARG1 = ARG2 ARG1 is equal to ARG2\n" \
223 "ARG1 != ARG2 ARG1 is unequal to ARG2\n" \
224 "ARG1 >= ARG2 ARG1 is greater than or equal to ARG2\n" \
225 "ARG1 > ARG2 ARG1 is greater than ARG2\n" \
226 "ARG1 + ARG2 arithmetic sum of ARG1 and ARG2\n" \
227 "ARG1 - ARG2 arithmetic difference of ARG1 and ARG2\n" \
228 "ARG1 * ARG2 arithmetic product of ARG1 and ARG2\n" \
229 "ARG1 / ARG2 arithmetic quotient of ARG1 divided by ARG2\n" \
230 "ARG1 % ARG2 arithmetic remainder of ARG1 divided by ARG2\n" \
231 "STRING : REGEXP anchored pattern match of REGEXP in STRING\n" \
232 "match STRING REGEXP same as STRING : REGEXP\n" \
233 "substr STRING POS LENGTH substring of STRING, POS counted from 1\n" \
234 "index STRING CHARS index in STRING where any CHARS is found, or 0\n" \
235 "length STRING length of STRING\n" \
236 "quote TOKEN interpret TOKEN as a string, even if it is a \n" \
237 " keyword like `match' or an operator like `/'\n" \
238 "( EXPRESSION ) value of EXPRESSION\n\n" \
239 "Beware that many operators need to be escaped or quoted for shells.\n" \
240 "Comparisons are arithmetic if both ARGs are numbers, else\n" \
241 "lexicographical. Pattern matches return the string matched between \n" \
242 "\\( and \\) or null; if \\( and \\) are not used, they return the number \n" \
243 "of characters matched or 0."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000244
Eric Andersen7e9276b2001-02-22 01:15:47 +0000245#define false_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000246 ""
Eric Andersen7e9276b2001-02-22 01:15:47 +0000247#define false_full_usage \
248 "Return an exit code of FALSE (1)."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000249
Eric Andersen7e9276b2001-02-22 01:15:47 +0000250#define fdflush_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000251 "DEVICE"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000252#define fdflush_full_usage \
253 "Forces floppy disk drive to detect disk change"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000254
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000255#ifdef BB_FEATURE_FIND_TYPE
Eric Andersen7e9276b2001-02-22 01:15:47 +0000256 #define USAGE_FIND_TYPE(a) a
257#else
258 #define USAGE_FIND_TYPE(a)
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000259#endif
260#ifdef BB_FEATURE_FIND_PERM
Eric Andersen7e9276b2001-02-22 01:15:47 +0000261 #define USAGE_FIND_PERM(a) a
262#else
263 #define USAGE_FIND_PERM(a)
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000264#endif
265#ifdef BB_FEATURE_FIND_MTIME
Eric Andersen7e9276b2001-02-22 01:15:47 +0000266 #define USAGE_FIND_MTIME(a) a
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000267#else
Eric Andersen7e9276b2001-02-22 01:15:47 +0000268 #define USAGE_FIND_MTIME(a)
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000269#endif
270
Eric Andersen7e9276b2001-02-22 01:15:47 +0000271#define find_trivial_usage \
272 "[PATH...] [EXPRESSION]"
273#define find_full_usage \
274 "Search for files in a directory hierarchy. The default PATH is\n" \
275 "the current directory; default EXPRESSION is '-print'\n\n" \
276 "\nEXPRESSION may consist of:\n" \
277 "\t-follow\t\tDereference symbolic links.\n" \
278 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN." \
279USAGE_FIND_TYPE( \
280 "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \
281) USAGE_FIND_PERM( \
282 "\n\t-perm PERMS\tPermissions match any of (+NNN); all of (-NNN);\n\t\t\tor exactly (NNN)" \
283) USAGE_FIND_MTIME( \
284 "\n\t-mtime TIME\tModified time is greater than (+N); less than (-N);\n\t\t\tor exactly (N) days")
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000285
Eric Andersen7e9276b2001-02-22 01:15:47 +0000286#define free_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000287 ""
Eric Andersen7e9276b2001-02-22 01:15:47 +0000288#define free_full_usage \
289 "Displays the amount of free and used system memory"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000290
Eric Andersen7e9276b2001-02-22 01:15:47 +0000291#define freeramdisk_trivial_usage \
292 "DEVICE"
293#define freeramdisk_full_usage \
294 "Frees all memory used by the specified ramdisk."
295
296#define fsck_minix_trivial_usage \
297 "[-larvsmf] /dev/name"
298#define fsck_minix_full_usage \
299 "Performs a consistency check for MINIX filesystems.\n\n" \
300 "Options:\n" \
301 "\t-l\tLists all filenames\n" \
302 "\t-r\tPerform interactive repairs\n" \
303 "\t-a\tPerform automatic repairs\n" \
304 "\t-v\tverbose\n" \
305 "\t-s\tOutputs super-block information\n" \
306 "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n" \
307 "\t-f\tForce file system check."
308
309#define getopt_trivial_usage \
310 "[OPTIONS]..."
311#define getopt_full_usage \
312 "\nParse command options\n" \
313 "\t-a, --alternative Allow long options starting with single -\n" \
314 "\t-l, --longoptions=longopts Long options to be recognized\n" \
315 "\t-n, --name=progname The name under which errors are reported\n" \
316 "\t-o, --options=optstring Short options to be recognized\n" \
317 "\t-q, --quiet Disable error reporting by getopt(3)\n" \
318 "\t-Q, --quiet-output No normal output\n" \
319 "\t-s, --shell=shell Set shell quoting conventions\n" \
320 "\t-T, --test Test for getopt(1) version\n" \
321 "\t-u, --unqote Do not quote the output"
322
323#define grep_trivial_usage \
324 "[-ihHnqvs] pattern [files...]"
325#define grep_full_usage \
326 "Search for PATTERN in each FILE or standard input.\n\n" \
327 "Options:\n" \
328 "\t-H\tprefix output lines with filename where match was found\n" \
329 "\t-h\tsuppress the prefixing filename on output\n" \
330 "\t-i\tignore case distinctions\n" \
331 "\t-n\tprint line number with output lines\n" \
332 "\t-q\tbe quiet. Returns 0 if result was found, 1 otherwise\n" \
333 "\t-v\tselect non-matching lines\n" \
334 "\t-s\tsuppress file open/read error messages"
335
336#define gunzip_trivial_usage \
337 "[OPTION]... FILE"
338#define gunzip_full_usage \
339 "Uncompress FILE (or standard input if FILE is '-').\n\n" \
340 "Options:\n" \
341 "\t-c\tWrite output to standard output\n" \
342 "\t-t\tTest compressed file integrity"
343
344#define gzip_trivial_usage \
345 "[OPTION]... FILE"
346#define gzip_full_usage \
347 "Compress FILE with maximum compression.\n" \
348 "When FILE is '-', reads standard input. Implies -c.\n\n" \
349 "Options:\n" \
350 "\t-c\tWrite output to standard output instead of FILE.gz\n" \
351 "\t-d\tdecompress"
352
353#define halt_trivial_usage \
354 ""
355#define halt_full_usage \
356 "Halt the system."
357
358#define head_trivial_usage \
359 "[OPTION] [FILE]..."
360#define head_full_usage \
361 "Print first 10 lines of each FILE to standard output.\n" \
362 "With more than one FILE, precede each with a header giving the\n" \
363 "file name. With no FILE, or when FILE is -, read standard input.\n\n" \
364 "Options:\n" "\t-n NUM\t\tPrint first NUM lines instead of first 10"
365
366#define hostid_trivial_usage \
367 ""
368#define hostid_full_usage \
369 "Print out a unique 32-bit identifier for the machine."
370
371#define hostname_trivial_usage \
372 "[OPTION] {hostname | -F file}"
373#define hostname_full_usage \
374 "Get or set the hostname or DNS domain name. If a hostname is given\n" \
375 "(or a file with the -F parameter), the host name will be set.\n\n" \
376 "Options:\n" \
377 "\t-s\t\tShort\n" \
378 "\t-i\t\tAddresses for the hostname\n" \
379 "\t-d\t\tDNS domain name\n" \
380 "\t-F, --file FILE\tUse the contents of FILE to specify the hostname"
381
382#define id_trivial_usage \
383 "[OPTIONS]... [USERNAME]"
384#define id_full_usage \
385 "Print information for USERNAME or the current user\n\n" \
386 "Options:\n" \
387 "\t-g\tprints only the group ID\n" \
388 "\t-u\tprints only the user ID\n" \
389 "\t-n\tprint a name instead of a number (with for -ug)\n" \
390 "\t-r\tprints the real user ID instead of the effective ID (with -ug)"
391
392#ifdef SIOCSKEEPALIVE
393 #define USAGE_SIOCSKEEPALIVE(a) a
394#else
395 #define USAGE_SIOCSKEEPALIVE(a)
396#endif
397#define ifconfig_trivial_usage \
398 "[-a] [-i] [-v] <interface> [<address>]"
399#define ifconfig_full_usage \
400 "configure a network interface\n\n" \
401 "Options:\n" \
402 "\t[[-]broadcast [<address>]] [[-]pointopoint [<address>]]\n" \
403 "\t[netmask <address>] [dstaddr <address>] [tunnel <adress>]\n" \
404USAGE_SIOCSKEEPALIVE("\t[outfill <NN>] [keepalive <NN>]\n") \
405 "\t[hw ether <address>] [metric <NN>] [mtu <NN>]\n" \
406 "\t[[-]trailers] [[-]arp] [[-]allmulti]\n" \
407 "\t[multicast] [[-]promisc]\n" \
408 "\t[mem_start <NN>] [io_addr <NN>] [irq <NN>] [media <type>]\n" \
409 "\t[up|down] ..."
410
411#define init_trivial_usage \
412 ""
413#define init_full_usage \
414 "Init is the parent of all processes.\n\n" \
415 "This version of init is designed to be run only by the kernel."
416
417#define insmod_trivial_usage \
418 "[OPTION]... MODULE [symbol=value]..."
419#define insmod_full_usage \
420 "Loads the specified kernel modules into the kernel.\n\n" \
421 "Options:\n" \
422 "\t-f\tForce module to load into the wrong kernel version.\n" \
423 "\t-k\tMake module autoclean-able.\n" \
424 "\t-v\tverbose output\n" \
425 "\t-L\tLock to prevent simultaneous loads of a module\n" \
426 "\t-x\tdo not export externs"
427
428#define kill_trivial_usage \
429 "[-signal] process-id [process-id ...]"
430#define kill_full_usage \
431 "Send a signal (default is SIGTERM) to the specified process(es).\n\n"\
432 "Options:\n" "\t-l\tList all signal names and numbers."
433
434#define killall_trivial_usage \
435 "[-signal] process-name [process-name ...]"
436#define killall_full_usage \
437 "Send a signal (default is SIGTERM) to the specified process(es).\n\n"\
438 "Options:\n" "\t-l\tList all signal names and numbers."
439
440#define length_trivial_usage \
441 "STRING"
442#define length_full_usage \
443 "Prints out the length of the specified STRING."
444
445#define ln_trivial_usage \
446 "[OPTION] TARGET... LINK_NAME|DIRECTORY"
447#define ln_full_usage \
448 "Create a link named LINK_NAME or DIRECTORY to the specified TARGET\n"\
449 "\nYou may use '--' to indicate that all following arguments are non-options.\n\n" \
450 "Options:\n" \
451 "\t-s\tmake symbolic links instead of hard links\n" \
452 "\t-f\tremove existing destination files\n" \
453 "\t-n\tno dereference symlinks - treat like normal file"
454
455#define loadacm_trivial_usage \
456 "< mapfile"
457#define loadacm_full_usage \
458 "Loads an acm from standard input."
459
460#define loadfont_trivial_usage \
461 "< font"
462#define loadfont_full_usage \
463 "Loads a console font from standard input."
464
465#define loadkmap_trivial_usage \
466 "< keymap"
467#define loadkmap_full_usage \
468 "Loads a binary keyboard translation table from standard input."
469
470#define logger_trivial_usage \
471 "[OPTION]... [MESSAGE]"
472#define logger_full_usage \
473 "Write MESSAGE to the system log. If MESSAGE is omitted, log stdin.\n\n" \
474 "Options:\n" \
475 "\t-s\tLog to stderr as well as the system log.\n" \
476 "\t-t\tLog using the specified tag (defaults to user name).\n" \
477 "\t-p\tEnter the message with the specified priority.\n" \
478 "\t\tThis may be numerical or a ``facility.level'' pair."
479
480#define logname_trivial_usage \
481 ""
482#define logname_full_usage \
483 "Print the name of the current user."
484
485#ifdef BB_FEATURE_LS_TIMESTAMPS
486 #define USAGE_LS_TIMESTAMPS(a) a
487#else
488 #define USAGE_LS_TIMESTAMPS(a)
489#endif
490#ifdef BB_FEATURE_LS_FILETYPES
491 #define USAGE_LS_FILETYPES(a) a
492#else
493 #define USAGE_LS_FILETYPES(a)
494#endif
495#ifdef BB_FEATURE_LS_FOLLOWLINKS
496 #define USAGE_LS_FOLLOWLINKS(a) a
497#else
498 #define USAGE_LS_FOLLOWLINKS(a)
499#endif
500#ifdef BB_FEATURE_LS_RECURSIVE
501 #define USAGE_LS_RECURSIVE(a) a
502#else
503 #define USAGE_LS_RECURSIVE(a)
504#endif
505#ifdef BB_FEATURE_LS_SORTFILES
506 #define USAGE_LS_SORTFILES(a) a
507#else
508 #define USAGE_LS_SORTFILES(a)
509#endif
510#ifdef BB_FEATURE_AUTOWIDTH
511 #define USAGE_AUTOWIDTH(a) a
512#else
513 #define USAGE_AUTOWIDTH(a)
514#endif
515#define ls_trivial_usage \
516 "[-1Aa" USAGE_LS_TIMESTAMPS("c") \
517 "Cd" USAGE_LS_TIMESTAMPS("e") USAGE_LS_FILETYPES("F") "iln" \
518 USAGE_LS_FILETYPES("p") USAGE_LS_FOLLOWLINKS("L") \
519 USAGE_LS_RECURSIVE("R") USAGE_LS_SORTFILES("rS") \
520 "s" USAGE_AUTOWIDTH("T") USAGE_LS_TIMESTAMPS("tu") \
521 USAGE_LS_SORTFILES("v") USAGE_AUTOWIDTH("w") "x" \
522 USAGE_LS_SORTFILES("X") USAGE_HUMAN_READABLE("h", "") \
523 "k] [filenames...]"
524#define ls_full_usage \
525 "List directory contents\n\n" \
526 "Options:\n" \
527 "\t-1\tlist files in a single column\n" \
528 "\t-A\tdo not list implied . and ..\n" \
529 "\t-a\tdo not hide entries starting with .\n" \
530 "\t-C\tlist entries by columns\n" \
531USAGE_LS_TIMESTAMPS( \
532 "\t-c\twith -l: show ctime (the time of last\n" \
533 "\t\tmodification of file status information)\n" \
534 ) \
535 "\t-d\tlist directory entries instead of contents\n" \
536USAGE_LS_TIMESTAMPS( \
537 "\t-e\tlist both full date and full time\n" \
538 ) \
539USAGE_LS_FILETYPES( \
540 "\t-F\tappend indicator (one of */=@|) to entries\n" \
541 ) \
542 "\t-i\tlist the i-node for each file\n" \
543 "\t-l\tuse a long listing format\n" \
544 "\t-n\tlist numeric UIDs and GIDs instead of names\n" \
545USAGE_LS_FILETYPES( \
546 "\t-p\tappend indicator (one of /=@|) to entries\n" \
547 ) \
548USAGE_LS_FOLLOWLINKS( \
549 "\t-L\tlist entries pointed to by symbolic links\n" \
550 ) \
551USAGE_LS_RECURSIVE( \
552 "\t-R\tlist subdirectories recursively\n" \
553 ) \
554USAGE_LS_SORTFILES( \
555 "\t-r\tsort the listing in reverse order\n" \
556 "\t-S\tsort the listing by file size\n" \
557 ) \
558 "\t-s\tlist the size of each file, in blocks\n" \
559USAGE_AUTOWIDTH( \
560 "\t-T NUM\tassume Tabstop every NUM columns\n" \
561 ) \
562USAGE_LS_TIMESTAMPS( \
563 "\t-t\twith -l: show modification time (the time of last\n" \
564 "\t\tchange of the file)\n" \
565 "\t-u\twith -l: show access time (the time of last\n" \
566 "\t\taccess of the file)\n" \
567 ) \
568USAGE_LS_SORTFILES( \
569 "\t-v\tsort the listing by version\n" \
570 ) \
571USAGE_AUTOWIDTH( \
572 "\t-w NUM\tassume the terminal is NUM columns wide\n" \
573 ) \
574 "\t-x\tlist entries by lines instead of by columns\n" \
575USAGE_LS_SORTFILES( \
576 "\t-X\tsort the listing by extension\n" \
577 ) \
578USAGE_HUMAN_READABLE( \
579 "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n" \
580 "\t-k\tprint sizes in kilobytes(default)" \
581 , \
582 "\t-k\tprint sizes in kilobytes(compatability)" \
583 ) \
584
585#define lsmod_trivial_usage \
586 ""
587#define lsmod_full_usage \
588 "List the currently loaded kernel modules."
589
590#define makedevs_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000591 "NAME TYPE MAJOR MINOR FIRST LAST [s]"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000592#define makedevs_full_usage \
593 "Creates a range of block or character special files\n\n" \
594 "TYPEs include:\n" \
595 "\tb:\tMake a block (buffered) device.\n" \
596 "\tc or u:\tMake a character (un-buffered) device.\n" \
597 "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n\n" \
598 "FIRST specifies the number appended to NAME to create the first device.\n" \
599 "LAST specifies the number of the last item that should be created.\n" \
600 "If 's' is the last argument, the base device is created as well.\n\n" \
601 "For example:\n" \
602 "\tmakedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000603 "\tmakedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000604
Eric Andersen7e9276b2001-02-22 01:15:47 +0000605#define md5sum_trivial_usage \
606 "[OPTION] [FILE]...\nor: md5sum [OPTION] -c [FILE]"
607#define md5sum_full_usage \
608 "Print or check MD5 checksums.\n\n" \
609 "Options:\n" \
610 "With no FILE, or when FILE is -, read standard input.\n\n" \
611 "\t-b\tread files in binary mode\n" \
612 "\t-c\tcheck MD5 sums against given list\n" \
613 "\t-t\tread files in text mode (default)\n" \
614 "\t-g\tread a string\n" \
615 "\nThe following two options are useful only when verifying checksums:\n" \
616 "\t-s,\tdon't output anything, status code shows success\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000617 "\t-w,\twarn about improperly formated MD5 checksum lines"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000618
Eric Andersen7e9276b2001-02-22 01:15:47 +0000619#define mkdir_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000620 "[OPTION] DIRECTORY..."
Eric Andersen7e9276b2001-02-22 01:15:47 +0000621#define mkdir_full_usage \
622 "Create the DIRECTORY(ies), if they do not already exist\n\n" \
623 "Options:\n" \
624 "\t-m\tset permission mode (as in chmod), not rwxrwxrwx - umask\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000625 "\t-p\tno error if existing, make parent directories as needed"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000626
Eric Andersen7e9276b2001-02-22 01:15:47 +0000627#define mkfifo_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000628 "[OPTIONS] name"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000629#define mkfifo_full_usage \
630 "Creates a named pipe (identical to 'mknod name p')\n\n" \
631 "Options:\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000632 "\t-m\tcreate the pipe using the specified mode (default a=rw)"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000633
Eric Andersen7e9276b2001-02-22 01:15:47 +0000634#define mkfs_minix_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000635 "[-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000636#define mkfs_minix_full_usage \
637 "Make a MINIX filesystem.\n\n" \
638 "Options:\n" \
639 "\t-c\t\tCheck the device for bad blocks\n" \
640 "\t-n [14|30]\tSpecify the maximum length of filenames\n" \
641 "\t-i INODES\tSpecify the number of inodes for the filesystem\n" \
642 "\t-l FILENAME\tRead the bad blocks list from FILENAME\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000643 "\t-v\t\tMake a Minix version 2 filesystem"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000644
Eric Andersen7e9276b2001-02-22 01:15:47 +0000645#define mknod_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000646 "[OPTIONS] NAME TYPE MAJOR MINOR"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000647#define mknod_full_usage \
648 "Create a special file (block, character, or pipe).\n\n" \
649 "Options:\n" \
650 "\t-m\tcreate the special file using the specified mode (default a=rw)\n\n" \
651 "TYPEs include:\n" \
652 "\tb:\tMake a block (buffered) device.\n" \
653 "\tc or u:\tMake a character (un-buffered) device.\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000654 "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000655
Eric Andersen7e9276b2001-02-22 01:15:47 +0000656#define mkswap_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000657 "[-c] [-v0|-v1] device [block-count]"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000658#define mkswap_full_usage \
659 "Prepare a disk partition to be used as a swap partition.\n\n" \
660 "Options:\n" "\t-c\t\tCheck for read-ability.\n" \
661 "\t-v0\t\tMake version 0 swap [max 128 Megs].\n" \
662 "\t-v1\t\tMake version 1 swap [big!] (default for kernels > 2.1.117).\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000663 "\tblock-count\tNumber of block to use (default is entire partition)."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000664
Eric Andersen7e9276b2001-02-22 01:15:47 +0000665#define mktemp_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000666 "[-q] TEMPLATE"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000667#define mktemp_full_usage \
668 "Creates a temporary file with its name based on TEMPLATE.\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000669 "TEMPLATE is any name with six `Xs' (i.e. /tmp/temp.XXXXXX)."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000670
Eric Andersen7e9276b2001-02-22 01:15:47 +0000671#define more_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000672 "[FILE ...]"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000673#define more_full_usage \
674 "More is a filter for viewing FILE one screenful at a time."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000675
Eric Andersen7e9276b2001-02-22 01:15:47 +0000676#ifdef BB_FEATURE_MOUNT_LOOP
677 #define USAGE_MOUNT_LOOP(a) a
678#else
679 #define USAGE_MOUNT_LOOP(a)
680#endif
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000681#ifdef BB_MTAB
Eric Andersen7e9276b2001-02-22 01:15:47 +0000682 #define USAGE_MTAB(a) a
683#else
684 #define USAGE_MTAB(a)
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000685#endif
Eric Andersen7e9276b2001-02-22 01:15:47 +0000686#define mount_trivial_usage \
687 "[flags] device directory [-o options,more-options]"
688#define mount_full_usage \
689 "Mount a filesystem\n\n" \
690 "Flags:\n" \
691 "\t-a:\t\tMount all filesystems in fstab.\n" \
692USAGE_MTAB( \
693 "\t-f:\t\t\"Fake\" mount. Add entry to mount table but don't mount it.\n" \
694 "\t-n:\t\tDon't write a mount table entry.\n" \
695 ) \
696 "\t-o option:\tOne of many filesystem options, listed below.\n" \
697 "\t-r:\t\tMount the filesystem read-only.\n" \
698 "\t-t fs-type:\tSpecify the filesystem type.\n" \
699 "\t-w:\t\tMount for reading and writing (default).\n" \
700 "\n" \
701 "Options for use with the \"-o\" flag:\n" \
702 "\tasync/sync:\tWrites are asynchronous / synchronous.\n" \
703 "\tatime/noatime:\tEnable / disable updates to inode access times.\n" \
704 "\tdev/nodev:\tAllow use of special device files / disallow them.\n" \
705 "\texec/noexec:\tAllow use of executable files / disallow them.\n" \
706USAGE_MOUNT_LOOP( \
707 "\tloop:\t\tMounts a file via loop device.\n" \
708 ) \
709 "\tsuid/nosuid:\tAllow set-user-id-root programs / disallow them.\n" \
710 "\tremount:\tRe-mount a currently-mounted filesystem, changing its flags.\n" \
711 "\tro/rw:\t\tMount for read-only / read-write.\n" \
712 "\nThere are EVEN MORE flags that are specific to each filesystem.\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000713 "You'll have to see the written documentation for those."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000714
Eric Andersen7e9276b2001-02-22 01:15:47 +0000715#define mt_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000716 "[-f device] opcode value"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000717#define mt_full_usage \
718 "Control magnetic tape drive operation\n" \
719 "\nAvailable Opcodes:\n\n" \
720 "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n" \
721 "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n" \
722 "ras3 reset retension rew rewoffline seek setblk setdensity\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000723 "setpart tell unload unlock weof wset"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000724
Eric Andersen7e9276b2001-02-22 01:15:47 +0000725#define mv_trivial_usage \
726 "SOURCE DEST\n or: mv SOURCE... DIRECTORY"
727#define mv_full_usage \
728 "Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000729
Eric Andersen7e9276b2001-02-22 01:15:47 +0000730#define nc_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000731 "[IP] [port]"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000732#define nc_full_usage \
733 "Netcat opens a pipe to IP:port"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000734
Eric Andersen7e9276b2001-02-22 01:15:47 +0000735#define nslookup_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000736 "[HOST]"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000737#define nslookup_full_usage \
738 "Queries the nameserver for the IP address of the given HOST"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000739
Eric Andersen7e9276b2001-02-22 01:15:47 +0000740#ifdef BB_FEATURE_SIMPLE_PING
741#define ping_trivial_usage "host"
742#define ping_full_usage "Send ICMP ECHO_REQUEST packets to network hosts"
743#else
744#define ping_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000745 "[OPTION]... host"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000746#define ping_full_usage \
747 "Send ICMP ECHO_REQUEST packets to network hosts.\n\n" \
748 "Options:\n" \
749 "\t-c COUNT\tSend only COUNT pings.\n" \
750 "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n" \
751 "\t-q\t\tQuiet mode, only displays output at start\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000752 "\t\t\tand when finished."
753#endif
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000754
Eric Andersen7e9276b2001-02-22 01:15:47 +0000755#define pivot_root_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000756 "new_root put_old"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000757#define pivot_root_full_usage \
758 "Move the current root file system to put_old and make new_root\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000759 "the new root file system."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000760
Eric Andersen7e9276b2001-02-22 01:15:47 +0000761#define poweroff_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000762 ""
Eric Andersen7e9276b2001-02-22 01:15:47 +0000763#define poweroff_full_usage \
764 "Halt the system and request that the kernel shut off the power."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000765
Eric Andersen7e9276b2001-02-22 01:15:47 +0000766#define printf_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000767 "FORMAT [ARGUMENT...]"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000768#define printf_full_usage \
769 "Formats and prints ARGUMENT(s) according to FORMAT,\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000770 "Where FORMAT controls the output exactly as in C printf."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000771
Eric Andersen7e9276b2001-02-22 01:15:47 +0000772#define ps_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000773 ""
Eric Andersen7e9276b2001-02-22 01:15:47 +0000774#define ps_full_usage \
775 "Report process status\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000776 "\nThis version of ps accepts no options."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000777
Eric Andersen7e9276b2001-02-22 01:15:47 +0000778#define pwd_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000779 ""
Eric Andersen7e9276b2001-02-22 01:15:47 +0000780#define pwd_full_usage \
781 "Print the full filename of the current working directory."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000782
Eric Andersen7e9276b2001-02-22 01:15:47 +0000783#define rdate_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000784 "[OPTION] HOST"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000785#define rdate_full_usage \
786 "Get and possibly set the system date and time from a remote HOST.\n" \
787 "Options:\n" \
788 "\t-s\tSet the system date and time (default).\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000789 "\t-p\tPrint the date and time."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000790
Eric Andersen7e9276b2001-02-22 01:15:47 +0000791#define readlink_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000792 ""
Eric Andersen7e9276b2001-02-22 01:15:47 +0000793#define readlink_full_usage \
794 "Read a symbolic link."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000795
Eric Andersen7e9276b2001-02-22 01:15:47 +0000796#define reboot_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000797 ""
Eric Andersen7e9276b2001-02-22 01:15:47 +0000798#define reboot_full_usage \
799 "Reboot the system."
800
801#define renice_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000802 "priority pid [pid ...]"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000803#define renice_full_usage \
804 "Changes priority of running processes. Allowed priorities range\n" \
805 "from 20 (the process runs only when nothing else is running) to 0\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000806 "(default priority) to -20 (almost nothing else ever gets to run)."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000807
Eric Andersen7e9276b2001-02-22 01:15:47 +0000808#define reset_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000809 ""
Eric Andersen7e9276b2001-02-22 01:15:47 +0000810#define reset_full_usage \
811 "Resets the screen."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000812
Eric Andersen7e9276b2001-02-22 01:15:47 +0000813#define rm_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000814 "[OPTION]... FILE..."
Eric Andersen7e9276b2001-02-22 01:15:47 +0000815#define rm_full_usage \
816 "Remove (unlink) the FILE(s). You may use '--' to\n" \
817 "indicate that all following arguments are non-options.\n\n" \
818 "Options:\n" \
819 "\t-f\t\tremove existing destinations, never prompt\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000820 "\t-r or -R\tremove the contents of directories recursively"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000821
Eric Andersen7e9276b2001-02-22 01:15:47 +0000822#define rmdir_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000823 "[OPTION]... DIRECTORY..."
Eric Andersen7e9276b2001-02-22 01:15:47 +0000824#define rmdir_full_usage \
825 "Remove the DIRECTORY(ies), if they are empty."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000826
Eric Andersen7e9276b2001-02-22 01:15:47 +0000827#define rmmod_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000828 "[OPTION]... [MODULE]..."
Eric Andersen7e9276b2001-02-22 01:15:47 +0000829#define rmmod_full_usage \
830 "Unloads the specified kernel modules from the kernel.\n\n" \
831 "Options:\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000832 "\t-a\tTry to remove all unused kernel modules."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000833
Eric Andersen7e9276b2001-02-22 01:15:47 +0000834#define route_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000835 "[{add|del|flush}]"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000836#define route_full_usage \
837 "Edit the kernel's routing tables"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000838
Eric Andersen7e9276b2001-02-22 01:15:47 +0000839#define rpmunpack_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000840 "< package.rpm | gunzip | cpio -idmuv"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000841#define rpmunpack_full_usage \
842 "Extracts an rpm archive."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000843
Eric Andersen7e9276b2001-02-22 01:15:47 +0000844#define sed_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000845 "[-Vhnef] pattern [files...]"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000846#define sed_full_usage \
847 "-n\t\tsuppress automatic printing of pattern space\n" \
848 "-e script\tadd the script to the commands to be executed\n" \
849 "-f scriptfile\tadd the contents of script-file to the commands to be executed\n" \
850 "-h\t\tdisplay this help message\n" \
851 "\n" \
852 "If no -e or -f is given, the first non-option argument is taken as the\n" \
853 "sed script to interpret. All remaining arguments are names of input\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000854 "files; if no input files are specified, then the standard input is read."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000855
Eric Andersen7e9276b2001-02-22 01:15:47 +0000856#define setkeycodes_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000857 "SCANCODE KEYCODE ..."
Eric Andersen7e9276b2001-02-22 01:15:47 +0000858#define setkeycodes_full_usage \
859 "Set entries into the kernel's scancode-to-keycode map,\n" \
860 "allowing unusual keyboards to generate usable keycodes.\n\n" \
861 "SCANCODE may be either xx or e0xx (hexadecimal),\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000862 "and KEYCODE is given in decimal"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000863
Eric Andersen7e9276b2001-02-22 01:15:47 +0000864#define sh_trivial_usage \
865 "[FILE]...\n or: sh -c command [args]..."
866#define sh_full_usage \
867 "lash: The BusyBox command interpreter (shell)."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000868
Eric Andersen7e9276b2001-02-22 01:15:47 +0000869#define sleep_trivial_usage \
870 "N"
871#define sleep_full_usage \
872 "Pause for N seconds."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000873
Eric Andersen7e9276b2001-02-22 01:15:47 +0000874
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000875#ifdef BB_FEATURE_SORT_REVERSE
Eric Andersen7e9276b2001-02-22 01:15:47 +0000876 #define USAGE_SORT_REVERSE(a) a
877#else
878 #define USAGE_SORT_REVERSE(a)
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000879#endif
Eric Andersen7e9276b2001-02-22 01:15:47 +0000880#define sort_trivial_usage \
881 "[-n]" USAGE_SORT_REVERSE(" [-r]") " [FILE]..."
882#define sort_full_usage \
883 "Sorts lines of text in the specified files"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000884
Eric Andersen7e9276b2001-02-22 01:15:47 +0000885#define stty_trivial_usage \
886 "[-a|g] [-F device] [SETTING]..."
887#define stty_full_usage \
888 "Without arguments, prints baud rate, line discipline," \
889 "\nand deviations from stty sane." \
890 "\n -F device open and use the specified device instead of stdin" \
891 "\n -a print all current settings in human-readable form. Or" \
892 "\n -g print in a stty-readable form" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000893 "\n [SETTING] see in documentation"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000894
Eric Andersen7e9276b2001-02-22 01:15:47 +0000895#define swapoff_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000896 "[OPTION] [device]"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000897#define swapoff_full_usage \
898 "Stop swapping virtual memory pages on the given device.\n\n" \
899 "Options:\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000900 "\t-a\tStop swapping on all swap devices"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000901
Eric Andersen7e9276b2001-02-22 01:15:47 +0000902#define swapon_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000903 "[OPTION] [device]"
Eric Andersen7e9276b2001-02-22 01:15:47 +0000904#define swapon_full_usage \
905 "Start swapping virtual memory pages on the given device.\n\n" \
906 "Options:\n" \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000907 "\t-a\tStart swapping on all swap devices"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000908
Eric Andersen7e9276b2001-02-22 01:15:47 +0000909#define sync_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000910 ""
Eric Andersen7e9276b2001-02-22 01:15:47 +0000911#define sync_full_usage \
912 "Write all buffered filesystem blocks to disk."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000913
Eric Andersen7e9276b2001-02-22 01:15:47 +0000914
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000915#ifdef BB_FEATURE_KLOGD
Eric Andersen7e9276b2001-02-22 01:15:47 +0000916 #define USAGE_KLOGD(a) a
917#else
918 #define USAGE_KLOGD(a)
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000919#endif
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000920#ifdef BB_FEATURE_REMOTE_LOG
Eric Andersen7e9276b2001-02-22 01:15:47 +0000921 #define USAGE_REMOTE_LOG(a) a
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000922#else
Eric Andersen7e9276b2001-02-22 01:15:47 +0000923 #define USAGE_REMOTE_LOG(a)
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000924#endif
Eric Andersen7e9276b2001-02-22 01:15:47 +0000925#define syslogd_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000926 "[OPTION]..."
Eric Andersen7e9276b2001-02-22 01:15:47 +0000927#define syslogd_full_usage \
928 "Linux system and kernel (provides klogd) logging utility.\n" \
929 "Note that this version of syslogd/klogd ignores /etc/syslog.conf.\n\n" \
930 "Options:\n" \
931 "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n" \
932 "\t-n\t\tRun as a foreground process\n" \
933USAGE_KLOGD("\t-K\t\tDo not start up the klogd process\n") \
934 "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)" \
935USAGE_REMOTE_LOG( \
936 "\n\t-R HOST[:PORT]\t\tLog remotely to IP or hostname on PORT (default PORT=514/UDP)\n" \
937 "\t-L\t\tLog locally as well as network logging (default is network only)")
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000938
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000939
Eric Andersen7e9276b2001-02-22 01:15:47 +0000940#ifdef BB_FEATURE_SIMPLE_TAIL
941 #define USAGE_UNSIMPLE_TAIL(a)
942#else
943 #define USAGE_UNSIMPLE_TAIL(a) a
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000944#endif
Eric Andersen7e9276b2001-02-22 01:15:47 +0000945#define tail_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000946 "[OPTION]... [FILE]..."
Eric Andersen7e9276b2001-02-22 01:15:47 +0000947#define tail_full_usage \
948 "Print last 10 lines of each FILE to standard output.\n" \
949 "With more than one FILE, precede each with a header giving the\n" \
950 "file name. With no FILE, or when FILE is -, read standard input.\n\n" \
951 "Options:\n" \
952USAGE_UNSIMPLE_TAIL("\t-c N[kbm]\toutput the last N bytes\n") \
953 "\t-n N[kbm]\tprint last N lines instead of last 10\n" \
954 "\t-f\t\toutput data as the file grows" \
955USAGE_UNSIMPLE_TAIL( \
956 "\n\t-q\t\tnever output headers giving file names\n" \
957 "\t-s SEC\t\twait SEC seconds between reads with -f\n" \
958 "\t-v\t\talways output headers giving file names\n\n" \
959 "If the first character of N (bytes or lines) is a `+', output begins with \n" \
960 "the Nth item from the start of each file, otherwise, print the last N items\n" \
961 "in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2)." \
962 )
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000963
Eric Andersen7e9276b2001-02-22 01:15:47 +0000964#ifdef BB_FEATURE_TAR_CREATE
965 #define USAGE_TAR_CREATE(a) a
966#else
967 #define USAGE_TAR_CREATE(a)
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000968#endif
Eric Andersen7e9276b2001-02-22 01:15:47 +0000969#ifdef BB_FEATURE_TAR_EXCLUDE
970 #define USAGE_TAR_EXCLUDE(a) a
971#else
972 #define USAGE_TAR_EXCLUDE(a)
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000973#endif
Eric Andersen7e9276b2001-02-22 01:15:47 +0000974#define tar_trivial_usage \
975 "-[" USAGE_TAR_CREATE("c") "xtvO] " \
976 USAGE_TAR_EXCLUDE("[--exclude File] [-X File]") \
977 "[-f tarFile] [FILE(s)] ..."
978#define tar_full_usage \
979 "Create, extract, or list files from a tar file.\n\n" \
980 "Main operation mode:\n" \
981USAGE_TAR_CREATE("\tc\t\tcreate\n") \
982 "\tx\t\textract\n" \
983 "\tt\t\tlist\n" \
984 "\nFile selection:\n" \
985 "\tf\t\tname of tarfile or \"-\" for stdin\n" \
986 "\tO\t\textract to stdout\n" \
987USAGE_TAR_EXCLUDE( \
988 "\texclude\t\tfile to exclude\n" \
989 "\tX\t\tfile with names to exclude\n" \
990 ) \
991 "\nInformative output:\n" \
992 "\tv\t\tverbosely list files processed"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000993
Eric Andersen7e9276b2001-02-22 01:15:47 +0000994#define tee_trivial_usage \
995 "[OPTION]... [FILE]..."
996#define tee_full_usage \
997 "Copy standard input to each FILE, and also to standard output.\n\n" \
998 "Options:\n" "\t-a\tappend to the given FILEs, do not overwrite"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +0000999
Eric Andersen7e9276b2001-02-22 01:15:47 +00001000#define telnet_trivial_usage \
1001 "host [port]"
1002#define telnet_full_usage \
1003 "Telnet is used to establish interactive communication with another\n"\
1004 "computer over a network using the TELNET protocol."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +00001005
Eric Andersen7e9276b2001-02-22 01:15:47 +00001006#define test_trivial_usage \
1007 "EXPRESSION\n or [ EXPRESSION ]"
1008#define test_full_usage \
1009 "Checks file types and compares values returning an exit\n" \
1010 "code determined by the value of EXPRESSION."
1011
1012#define touch_trivial_usage \
1013 "[-c] file [file ...]"
1014#define touch_full_usage \
1015 "Update the last-modified date on the given file[s].\n\n" \
1016 "Options:\n" \
1017 "\t-c\tDo not create any files"
1018
1019#define tr_trivial_usage \
1020 "[-cds] STRING1 [STRING2]"
1021#define tr_full_usage \
1022 "Translate, squeeze, and/or delete characters from\n" \
1023 "standard input, writing to standard output.\n\n" \
1024 "Options:\n" \
1025 "\t-c\ttake complement of STRING1\n" \
1026 "\t-d\tdelete input characters coded STRING1\n" \
1027 "\t-s\tsqueeze multiple output characters of STRING2 into one character"
1028
1029#define true_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +00001030 ""
Eric Andersen7e9276b2001-02-22 01:15:47 +00001031#define true_full_usage \
1032 "Return an exit code of TRUE (0)."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +00001033
Eric Andersen7e9276b2001-02-22 01:15:47 +00001034#define tty_trivial_usage \
1035 ""
1036#define tty_full_usage \
1037 "Print the file name of the terminal connected to standard input.\n\n"\
1038 "Options:\n" \
1039 "\t-s\tprint nothing, only return an exit status"
Eric Andersen3ec8ffb2001-02-14 21:46:30 +00001040
Eric Andersen7e9276b2001-02-22 01:15:47 +00001041#ifdef BB_FEATURE_MOUNT_FORCE
1042 #define USAGE_MOUNT_FORCE(a) a
1043#else
1044 #define USAGE_MOUNT_FORCE(a)
1045#endif
1046#define umount_trivial_usage \
1047 "[flags] filesystem|directory"
1048#define umount_full_usage \
1049 "Unmount file systems\n" \
1050 "\nFlags:\n" "\t-a:\tUnmount all file systems" \
1051USAGE_MTAB(" in /etc/mtab\n\t-n:\tDon't erase /etc/mtab entries") \
1052 "\n\t-r:\tTry to remount devices as read-only if mount is busy" \
1053USAGE_MOUNT_FORCE("\n\t-f:\tForce filesystem umount (i.e. unreachable NFS server)") \
1054USAGE_MOUNT_LOOP("\n\t-l:\tDo not free loop device (if a loop device has been used)" \
1055 )
1056
1057#define uname_trivial_usage \
1058 "[OPTION]..."
1059#define uname_full_usage \
1060 "Print certain system information. With no OPTION, same as -s.\n\n" \
1061 "Options:\n" \
1062 "\t-a\tprint all information\n" \
1063 "\t-m\tthe machine (hardware) type\n" \
1064 "\t-n\tprint the machine's network node hostname\n" \
1065 "\t-r\tprint the operating system release\n" \
1066 "\t-s\tprint the operating system name\n" \
1067 "\t-p\tprint the host processor type\n" \
1068 "\t-v\tprint the operating system version"
1069
1070#define uniq_trivial_usage \
1071 "[OPTION]... [INPUT [OUTPUT]]"
1072#define uniq_full_usage \
1073 "Discard all but one of successive identical lines from INPUT\n" \
1074 "(or standard input), writing to OUTPUT (or standard output).\n" \
1075 "Options:\n" \
1076 "\t-c\tprefix lines by the number of occurrences\n" \
1077 "\t-d\tonly print duplicate lines\n" \
1078 "\t-u\tonly print unique lines"
1079
1080#define unix2dos_trivial_usage \
1081 "< unixfile > dosfile"
1082#define unix2dos_full_usage \
1083 "Converts a text file from unix format to dos format."
1084
1085#define update_trivial_usage \
1086 "[options]"
1087#define update_full_usage \
1088 "Periodically flushes filesystem buffers.\n\n" \
1089 "Options:\n" \
1090 "\t-S\tforce use of sync(2) instead of flushing\n" \
1091 "\t-s SECS\tcall sync this often (default 30)\n" \
1092 "\t-f SECS\tflush some buffers this often (default 5)"
1093
1094#define uptime_trivial_usage \
1095 ""
1096#define uptime_full_usage \
1097 "Display the time since the last boot."
1098
1099#define usleep_trivial_usage \
1100 "N"
1101#define usleep_full_usage \
1102 "Pause for N microseconds."
1103
1104#define uudecode_trivial_usage \
1105 "[FILE]..."
1106#define uudecode_full_usage \
1107 "Uudecode a file that is uuencoded.\n\n" \
1108 "Options:\n" \
1109 "\t-o FILE\tdirect output to FILE" \
1110
1111#define uuencode_trivial_usage \
1112 "[OPTION] [INFILE] REMOTEFILE"
1113#define uuencode_full_usage \
1114 "Uuencode a file.\n\n" \
1115 "Options:\n" \
1116 "\t-m\tuse base64 encoding as of RFC1521"
1117
1118#define watchdog_trivial_usage \
1119 "dev"
1120#define watchdog_full_usage \
1121 "Periodically write to watchdog device \"dev\""
1122
1123#define wc_trivial_usage \
1124 "[OPTION]... [FILE]..."
1125#define wc_full_usage \
1126 "Print line, word, and byte counts for each FILE, and a total line if\n" \
1127 "more than one FILE is specified. With no FILE, read standard input.\n\n" \
1128 "Options:\n" \
1129 "\t-c\tprint the byte counts\n" \
1130 "\t-l\tprint the newline counts\n" \
1131 "\t-L\tprint the length of the longest line\n" \
1132 "\t-w\tprint the word counts"
1133
1134#define wget_trivial_usage \
1135 "[-c] [-O file] url"
1136#define wget_full_usage \
1137 "wget retrieves files via HTTP\n\n" \
1138 "Options:\n" \
1139 "\t-c\tcontinue retrieval of aborted transfers\n" \
1140 "\t-O\tsave to filename ('-' for stdout)"
1141
1142#define which_trivial_usage \
1143 "[COMMAND ...]"
1144#define which_full_usage \
1145 "Locates a COMMAND."
1146
1147#define whoami_trivial_usage \
1148 ""
1149#define whoami_full_usage \
1150 "Prints the user name associated with the current effective user id."
1151
1152#define xargs_trivial_usage \
1153 "[COMMAND] [ARGS...]"
1154#define xargs_full_usage \
1155 "Executes COMMAND on every item given by standard input."
1156
1157#define yes_trivial_usage \
Eric Andersen3ec8ffb2001-02-14 21:46:30 +00001158 "[OPTION]... [STRING]..."
Eric Andersen7e9276b2001-02-22 01:15:47 +00001159#define yes_full_usage \
1160 "Repeatedly outputs a line with all specified STRING(s), or `y'."
Eric Andersen3ec8ffb2001-02-14 21:46:30 +00001161
Eric Andersen7e9276b2001-02-22 01:15:47 +00001162#define zcat_trivial_usage \
1163 "FILE"
1164#define zcat_full_usage \
1165 "Uncompress to stdout."