My previous attempt to make dd use fullRead, fullWrite was very broken,
[oweals/busybox.git] / usage.c
1 #include "internal.h"
2
3 #if defined BB_AR
4 const char ar_usage[] =
5         "ar -[ovR]{ptx} archive filenames \n"
6 #ifndef BB_FEATURE_TRIVIAL_HELP
7         "\nExtract or list files from an ar archive.\n\n"
8         "Options:\n"
9         "\t-o\t\tpreserve original dates\n"
10         "\t-p\t\textract to stdout\n"
11         "\t-t\t\tlist\n"
12         "\t-x\t\textract\n"
13         "\t-v\t\tverbosely list files processed\n"
14         "\t-R\t\trecursive action\n"
15 #endif
16         ;
17 #endif
18
19 #if defined BB_BASENAME
20 const char basename_usage[] =
21         "basename FILE [SUFFIX]\n"
22 #ifndef BB_FEATURE_TRIVIAL_HELP
23         "\nStrips directory path and suffixes from FILE.\n"
24         "If specified, also removes any trailing SUFFIX.\n"
25 #endif
26         ;
27 #endif
28
29 #if defined BB_CAT
30 const char cat_usage[] =
31         "cat [FILE]...\n"
32 #ifndef BB_FEATURE_TRIVIAL_HELP
33         "\nConcatenates FILE(s) and prints them to stdout.\n"
34 #endif
35         ;
36 #endif
37
38 #if defined BB_CHMOD_CHOWN_CHGRP
39 const char chgrp_usage[] =
40         "chgrp [OPTION]... GROUP FILE...\n"
41 #ifndef BB_FEATURE_TRIVIAL_HELP
42         "\nChange the group membership of each FILE to GROUP.\n"
43         "\nOptions:\n\t-R\tChanges files and directories recursively.\n"
44 #endif
45         ;
46 #endif
47
48 #if defined BB_CHMOD_CHOWN_CHGRP
49 const char chmod_usage[] =
50         "chmod [-R] MODE[,MODE]... FILE...\n"
51 #ifndef BB_FEATURE_TRIVIAL_HELP
52         "\nEach MODE is one or more of the letters ugoa, one of the symbols +-= and\n"
53         "one or more of the letters rwxst.\n\n"
54         "\nOptions:\n\t-R\tChanges files and directories recursively.\n"
55 #endif
56         ;
57 #endif
58
59 #if defined BB_CHMOD_CHOWN_CHGRP
60 const char chown_usage[] =
61         "chown [OPTION]...  OWNER[<.|:>[GROUP] FILE...\n"
62 #ifndef BB_FEATURE_TRIVIAL_HELP
63         "\nChange the owner and/or group of each FILE to OWNER and/or GROUP.\n"
64         "\nOptions:\n\t-R\tChanges files and directories recursively.\n"
65 #endif
66         ;
67 #endif
68
69 #if defined BB_CHROOT
70 const char chroot_usage[] =
71         "chroot NEWROOT [COMMAND...]\n"
72 #ifndef BB_FEATURE_TRIVIAL_HELP
73         "\nRun COMMAND with root directory set to NEWROOT.\n"
74 #endif
75         ;
76 #endif
77
78 #if defined BB_CHVT
79 const char chvt_usage[] =
80         "chvt N\n"
81 #ifndef BB_FEATURE_TRIVIAL_HELP
82         "\nChanges the foreground virtual terminal to /dev/ttyN\n"
83 #endif
84         ;
85 #endif
86
87 #if defined BB_CLEAR
88 const char clear_usage[] =
89         "clear\n"
90 #ifndef BB_FEATURE_TRIVIAL_HELP
91         "\nClear screen.\n"
92 #endif
93         ;
94 #endif
95
96 #if defined BB_CP_MV
97 const char cp_usage[] =
98         "cp [OPTION]... SOURCE DEST\n"
99         "   or: cp [OPTION]... SOURCE... DIRECTORY\n"
100 #ifndef BB_FEATURE_TRIVIAL_HELP
101         "\nCopies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n"
102         "\n"
103         "\t-a\tSame as -dpR\n"
104         "\t-d\tPreserves links\n"
105         "\t-p\tPreserves file attributes if possible\n"
106         "\t-f\tforce (implied; ignored) - always set\n"
107         "\t-R\tCopies directories recursively\n"
108 #endif
109         ;
110 #endif
111
112 #if defined BB_CUT
113 const char cut_usage[] =
114         "cut [OPTION]... [FILE]...\n"
115 #ifndef BB_FEATURE_TRIVIAL_HELP
116         "\nPrints selected fields from each input FILE to standard output.\n\n"
117         "Options:\n"
118         "\t-b LIST\tOutput only bytes from LIST\n"
119         "\t-c LIST\tOutput only characters from LIST\n"
120         "\t-d CHAR\tUse CHAR instead of tab as the field delimiter\n"
121         "\t-s\tOutput only the lines containing delimiter\n"
122         "\t-f N\tPrint only these fields\n"
123         "\t-n\tIgnored\n"
124 #endif
125         ;
126 #endif
127
128 #if defined BB_DATE
129 const char date_usage[] =
130         "date [OPTION]... [+FORMAT]\n"
131         "  or:  date [OPTION] [MMDDhhmm[[CC]YY][.ss]]\n"
132 #ifndef BB_FEATURE_TRIVIAL_HELP
133         "\nDisplays the current time in the given FORMAT, or sets the system date.\n"
134         "\nOptions:\n\t-R\tOutputs RFC-822 compliant date string\n"
135         "\t-s\tSets time described by STRING\n"
136         "\t-u\tPrints or sets Coordinated Universal Time\n"
137 #endif
138         ;
139 #endif
140
141 #if defined BB_DC
142 const char dc_usage[] =
143         "dc expression ...\n"
144 #ifndef BB_FEATURE_TRIVIAL_HELP
145         "\nThis is a Tiny RPN calculator that understands the\n"
146         "following operations: +, -, /, *, and, or, not, eor.\n"
147         "i.e. 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16\n"
148 #endif
149         ;
150 #endif
151
152 #if defined BB_DD
153 const char dd_usage[] =
154         "dd [if=FILE] [of=FILE] [bs=N] [count=N] [skip=N] [seek=N]\n"
155 #ifndef BB_FEATURE_TRIVIAL_HELP
156         "\nCopy a file, converting and formatting according to options\n\n"
157         "\tif=FILE\tread from FILE instead of stdin\n"
158         "\tof=FILE\twrite to FILE instead of stdout\n"
159         "\tbs=N\tread and write N bytes at a time\n"
160         "\tcount=N\tcopy only N input blocks\n"
161         "\tskip=N\tskip N input blocks\n"
162         "\tseek=N\tskip N output blocks\n"
163         "\n"
164         "Numbers may be suffixed by w (x2), k (x1024), b (x512), or M (x1024^2)\n"
165 #endif
166         ;
167 #endif
168
169 #if defined BB_DEALLOCVT
170 const char deallocvt_usage[] =
171         "deallocvt N\n"
172 #ifndef BB_FEATURE_TRIVIAL_HELP
173          "\nDeallocate unused virtual terminal /dev/ttyN\n"
174 #endif
175          ;
176 #endif
177
178 #if defined BB_DF
179 const char df_usage[] =
180         "df [filesystem ...]\n"
181 #ifndef BB_FEATURE_TRIVIAL_HELP
182         "\nPrint the filesystem space used and space available.\n"
183 #endif
184         ;
185 #endif
186
187 #if defined BB_DIRNAME
188 const char dirname_usage[] =
189         "dirname [FILENAME ...]\n"
190 #ifndef BB_FEATURE_TRIVIAL_HELP
191         "\nStrips non-directory suffix from FILENAME\n"
192 #endif
193         ;
194 #endif
195
196 #if defined BB_DMESG
197 const char dmesg_usage[] =
198         "dmesg [-c] [-n LEVEL] [-s SIZE]\n"
199 #ifndef BB_FEATURE_TRIVIAL_HELP
200         "\nPrints or controls the kernel ring buffer\n\n"
201         "Options:\n"
202         "\t-c\t\tClears the ring buffer's contents after printing\n"
203         "\t-n LEVEL\tSets console logging level\n"
204         "\t-s SIZE\t\tUse a buffer of size SIZE\n"
205 #endif
206         ;
207 #endif
208
209 #if defined BB_DU
210 const char du_usage[] =
211         "du [OPTION]... [FILE]...\n"
212 #ifndef BB_FEATURE_TRIVIAL_HELP
213         "\nSummarizes disk space used for each FILE and/or directory.\n"
214         "Disk space is printed in units of 1024 bytes.\n\n"
215         "Options:\n"
216         "\t-l\tcount sizes many times if hard linked\n"
217         "\t-s\tdisplay only a total for each argument\n"
218 #endif
219         ;
220 #endif
221
222 #if defined BB_DUMPKMAP
223 const char dumpkmap_usage[] =
224         "dumpkmap > keymap\n"
225 #ifndef BB_FEATURE_TRIVIAL_HELP
226         "\nPrints out a binary keyboard translation table to standard input.\n"
227 #endif
228         ;
229 #endif
230
231 #if defined BB_DUTMP
232 const char dutmp_usage[] =
233         "dutmp [FILE]\n"
234 #ifndef BB_FEATURE_TRIVIAL_HELP
235         "\nDump utmp file format (pipe delimited) from FILE\n"
236         "or stdin to stdout.  (i.e. 'dutmp /var/run/utmp')\n"
237 #endif
238         ;
239 #endif
240
241 #if defined BB_ECHO
242 const char echo_usage[] =
243         "echo [-neE] [ARG ...]\n"
244 #ifndef BB_FEATURE_TRIVIAL_HELP
245         "\nPrints the specified ARGs to stdout\n\n"
246         "Options:\n"
247         "\t-n\tsuppress trailing newline\n"
248         "\t-e\tinterpret backslash-escaped characters (i.e. \\t=tab etc)\n"
249         "\t-E\tdisable interpretation of backslash-escaped characters\n"
250 #endif
251         ;
252 #endif
253
254 #if defined BB_EXPR
255 const char expr_usage[] =
256         "expr EXPRESSION\n"
257 #ifndef BB_FEATURE_TRIVIAL_HELP
258         "\nPrints the value of EXPRESSION to standard output.\n\n"
259        "EXPRESSION may be:\n"
260        "ARG1 |  ARG2    ARG1 if it is neither null nor 0, otherwise ARG2\n"
261        "ARG1 &  ARG2    ARG1 if neither argument is null or 0, otherwise 0\n"
262        "ARG1 <  ARG2    ARG1 is less than ARG2\n"
263        "ARG1 <= ARG2    ARG1 is less than or equal to ARG2\n"
264        "ARG1 =  ARG2    ARG1 is equal to ARG2\n"
265        "ARG1 != ARG2    ARG1 is unequal to ARG2\n"
266        "ARG1 >= ARG2    ARG1 is greater than or equal to ARG2\n"
267        "ARG1 >  ARG2    ARG1 is greater than ARG2\n"
268        "ARG1 +  ARG2    arithmetic sum of ARG1 and ARG2\n"
269        "ARG1 -  ARG2    arithmetic difference of ARG1 and ARG2\n"
270        "ARG1 *  ARG2    arithmetic product of ARG1 and ARG2\n"
271        "ARG1 /  ARG2    arithmetic quotient of ARG1 divided by ARG2\n"
272        "ARG1 %  ARG2    arithmetic remainder of ARG1 divided by ARG2\n"
273        "STRING : REGEXP             anchored pattern match of REGEXP in STRING\n"
274        "match STRING REGEXP         same as STRING : REGEXP\n"
275        "substr STRING POS LENGTH    substring of STRING, POS counted from 1\n"
276        "index STRING CHARS          index in STRING where any CHARS is found, or 0\n"
277        "length STRING               length of STRING\n"
278        "quote TOKEN                 interpret TOKEN as a string, even if it is a \n"
279        "                                keyword like `match' or an operator like `/'\n"
280        "( EXPRESSION )              value of EXPRESSION\n\n"
281        "Beware that many operators need to be escaped or quoted for shells.\n"
282        "Comparisons are arithmetic if both ARGs are numbers, else\n"
283        "lexicographical.  Pattern matches return the string matched between \n"
284        "\\( and \\) or null; if \\( and \\) are not used, they return the number \n"
285        "of characters matched or 0.\n"
286
287 #endif
288         ;
289 #endif
290
291
292 #if defined BB_TRUE_FALSE
293 const char false_usage[] =
294         "false\n"
295 #ifndef BB_FEATURE_TRIVIAL_HELP
296         "\nReturn an exit code of FALSE (1).\n"
297 #endif
298         ;
299 #endif
300
301 #if defined BB_FDFLUSH
302 const char fdflush_usage[] =
303         "fdflush DEVICE\n"
304 #ifndef BB_FEATURE_TRIVIAL_HELP
305         "\nForces floppy disk drive to detect disk change\n"
306 #endif
307         ;
308 #endif
309
310 #if defined BB_FIND
311 const char find_usage[] =
312         "find [PATH...] [EXPRESSION]\n"
313 #ifndef BB_FEATURE_TRIVIAL_HELP
314         "\nSearch for files in a directory hierarchy.  The default PATH is\n"
315         "the current directory; default EXPRESSION is '-print'\n\n"
316         "\nEXPRESSION may consist of:\n"
317         "\t-follow\t\tDereference symbolic links.\n"
318         "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN.\n"
319         "\t-print\t\tprint the full file name followed by a newline to stdout.\n"
320 #endif
321         ;
322 #endif
323
324 #if defined BB_FREE
325 const char free_usage[] =
326         "free\n"
327 #ifndef BB_FEATURE_TRIVIAL_HELP
328         "\nDisplays the amount of free and used system memory\n"
329 #endif
330         ;
331 #endif
332
333 #if defined BB_FREERAMDISK
334 const char freeramdisk_usage[] =
335         "freeramdisk DEVICE\n"
336 #ifndef BB_FEATURE_TRIVIAL_HELP
337         "\nFrees all memory used by the specified ramdisk.\n"
338 #endif
339         ;
340 #endif
341
342 #if defined BB_FSCK_MINIX
343 const char fsck_minix_usage[] =
344         "Usage: fsck.minix [-larvsmf] /dev/name\n"
345 #ifndef BB_FEATURE_TRIVIAL_HELP
346         "\nPerforms a consistency check for MINIX filesystems.\n\n"
347         "Options:\n"
348         "\t-l\tLists all filenames\n"
349         "\t-r\tPerform interactive repairs\n"
350         "\t-a\tPerform automatic repairs\n"
351         "\t-v\tverbose\n"
352         "\t-s\tOutputs super-block information\n"
353         "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n"
354         "\t-f\tForce file system check.\n\n"
355 #endif
356         ;
357 #endif
358
359 #if defined BB_GREP
360 const char grep_usage[] =
361         "grep [-ihHnqvs] pattern [files...]\n"
362 #ifndef BB_FEATURE_TRIVIAL_HELP
363         "\nSearch for PATTERN in each FILE or standard input.\n\n"
364         "Options:\n"
365         "\t-H\tprefix output lines with filename where match was found\n"
366         "\t-h\tsuppress the prefixing filename on output\n"
367         "\t-i\tignore case distinctions\n"
368         "\t-n\tprint line number with output lines\n"
369         "\t-q\tbe quiet. Returns 0 if result was found, 1 otherwise\n"
370         "\t-v\tselect non-matching lines\n"
371         "\t-s\tsuppress file open/read error messages\n\n"
372 #endif
373         ;
374 #endif
375
376 #if defined BB_GUNZIP
377 const char gunzip_usage[] =
378         "gunzip [OPTION]... FILE\n"
379 #ifndef BB_FEATURE_TRIVIAL_HELP
380         "\nUncompress FILE (or standard input if FILE is '-').\n\n"
381         "Options:\n"
382         "\t-c\tWrite output to standard output\n"
383         "\t-t\tTest compressed file integrity\n"
384 #endif
385         ;
386 #endif
387
388 #if defined BB_GZIP
389 const char gzip_usage[] =
390         "gzip [OPTION]... FILE\n"
391 #ifndef BB_FEATURE_TRIVIAL_HELP
392         "\nCompress FILE with maximum compression.\n"
393         "When FILE is '-', reads standard input.  Implies -c.\n\n"
394         "Options:\n"
395         "\t-c\tWrite output to standard output instead of FILE.gz\n"
396 #endif
397         ;
398 #endif
399
400 #if defined BB_HALT
401 const char halt_usage[] =
402         "halt\n"
403 #ifndef BB_FEATURE_TRIVIAL_HELP
404         "\nHalt the system.\n"
405 #endif
406         ;
407 #endif
408
409 #if defined BB_HEAD
410 const char head_usage[] =
411         "head [OPTION] [FILE]...\n"
412 #ifndef BB_FEATURE_TRIVIAL_HELP
413         "\nPrint first 10 lines of each FILE to standard output.\n"
414         "With more than one FILE, precede each with a header giving the\n"
415         "file name. With no FILE, or when FILE is -, read standard input.\n\n"
416
417         "Options:\n" "\t-n NUM\t\tPrint first NUM lines instead of first 10\n"
418 #endif
419         ;
420 #endif
421
422 #if defined BB_HOSTID
423 const char hostid_usage[] =
424         "hostid\n"
425 #ifndef BB_FEATURE_TRIVIAL_HELP
426         "\nPrint out a unique 32-bit identifier for the machine.\n"
427 #endif
428         ;
429 #endif
430
431 #if defined BB_HOSTNAME
432 const char hostname_usage[] =
433         "hostname [OPTION] {hostname | -F file}\n"
434 #ifndef BB_FEATURE_TRIVIAL_HELP
435         "\nGet or set the hostname or DNS domain name. If a hostname is given\n"
436         "(or a file with the -F parameter), the host name will be set.\n\n"
437         "Options:\n"
438         "\t-s\t\tShort\n"
439
440         "\t-i\t\tAddresses for the hostname\n"
441         "\t-d\t\tDNS domain name\n"
442         "\t-F FILE\t\tUse the contents of FILE to specify the hostname\n"
443 #endif
444         ;
445 #endif
446
447 #if defined BB_ID
448 const char id_usage[] =
449         "id [OPTIONS]... [USERNAME]\n"
450 #ifndef BB_FEATURE_TRIVIAL_HELP
451         "\nPrint information for USERNAME or the current user\n\n"
452         "Options:\n"
453         "\t-g\tprints only the group ID\n"
454         "\t-u\tprints only the user ID\n"
455         "\t-r\tprints the real user ID instead of the effective ID (with -ug)\n\n"
456 #endif
457         ;
458 #endif
459
460 #if defined BB_INSMOD
461 const char insmod_usage[] =
462         "insmod [OPTION]... MODULE [symbol=value]...\n"
463 #ifndef BB_FEATURE_TRIVIAL_HELP
464         "\nLoads the specified kernel modules into the kernel.\n\n"
465         "Options:\n"
466         "\t-f\tForce module to load into the wrong kernel version.\n"
467         "\t-k\tMake module autoclean-able.\n"
468         "\t-v\tverbose output\n" "\t-x\tdo not export externs\n"
469 #endif
470         ;
471 #endif
472
473 #if defined BB_KILL
474 const char kill_usage[] =
475         "kill [-signal] process-id [process-id ...]\n"
476 #ifndef BB_FEATURE_TRIVIAL_HELP
477         "\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
478         "Options:\n" "\t-l\tList all signal names and numbers.\n\n"
479 #endif
480         ;
481 #endif
482
483 #if defined BB_KILLALL
484 const char killall_usage[] =
485         "killall [-signal] process-name [process-name ...]\n"
486 #ifndef BB_FEATURE_TRIVIAL_HELP
487         "\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
488         "Options:\n" "\t-l\tList all signal names and numbers.\n\n"
489 #endif
490         ;
491 #endif
492
493 #if defined BB_LENGTH
494 const char length_usage[] =
495         "length STRING\n"
496 #ifndef BB_FEATURE_TRIVIAL_HELP
497         "\nPrints out the length of the specified STRING.\n"
498 #endif
499         ;
500 #endif
501
502 #if defined BB_LN
503 const char ln_usage[] =
504         "ln [OPTION] TARGET... LINK_NAME|DIRECTORY\n"
505 #ifndef BB_FEATURE_TRIVIAL_HELP
506         "\nCreate a link named LINK_NAME or DIRECTORY to the specified TARGET\n"
507         "\nYou may use '--' to indicate that all following arguments are non-options.\n\n"
508         "Options:\n"
509         "\t-s\tmake symbolic links instead of hard links\n"
510
511         "\t-f\tremove existing destination files\n"
512         "\t-n\tno dereference symlinks - treat like normal file\n"
513 #endif
514         ;
515 #endif
516
517 #if defined BB_LOADACM
518 const char loadacm_usage[] =
519         "loadacm < mapfile\n"
520 #ifndef BB_FEATURE_TRIVIAL_HELP
521         "\nLoads an acm from standard input.\n"
522 #endif
523         ;
524 #endif
525
526 #if defined BB_LOADFONT
527 const char loadfont_usage[] =
528         "loadfont < font\n"
529 #ifndef BB_FEATURE_TRIVIAL_HELP
530         "Loads a console font from standard input.\n"
531 #endif
532         ;
533 #endif
534
535 #if defined BB_LOADKMAP
536 const char loadkmap_usage[] =
537         "loadkmap < keymap\n"
538 #ifndef BB_FEATURE_TRIVIAL_HELP
539         "\nLoads a binary keyboard translation table from standard input.\n"
540 #endif
541         ;
542 #endif
543
544 #if defined BB_LOGGER
545 const char logger_usage[] =
546         "logger [OPTION]... [MESSAGE]\n"
547 #ifndef BB_FEATURE_TRIVIAL_HELP
548         "\nWrite MESSAGE to the system log.  If MESSAGE is '-', log stdin.\n\n"
549         "Options:\n"
550         "\t-s\tLog to stderr as well as the system log.\n"
551         "\t-t\tLog using the specified tag (defaults to user name).\n"
552
553         "\t-p\tEnter the message with the specified priority.\n"
554         "\t\tThis may be numerical or a ``facility.level'' pair.\n"
555 #endif
556         ;
557 #endif
558
559 #if defined BB_LOGNAME
560 const char logname_usage[] =
561         "logname\n"
562 #ifndef BB_FEATURE_TRIVIAL_HELP
563         "\nPrint the name of the current user.\n"
564 #endif
565         ;
566 #endif
567
568 #if defined BB_LS
569 const char ls_usage[] =
570         "ls [-1Aa"
571 #ifdef BB_FEATURE_LS_TIMESTAMPS
572         "c"
573 #endif
574         "Cd"
575 #ifdef BB_FEATURE_LS_TIMESTAMPS
576         "e"
577 #endif
578 #ifdef BB_FEATURE_LS_FILETYPES
579         "F"
580 #endif
581         "iln"
582 #ifdef BB_FEATURE_LS_FILETYPES
583         "p"
584 #endif
585 #ifdef BB_FEATURE_LS_RECURSIVE
586         "R"
587 #endif
588 #ifdef BB_FEATURE_LS_SORTFILES
589         "rS"
590 #endif
591         "s"
592 #ifdef BB_FEATURE_AUTOWIDTH
593         "T"
594 #endif
595 #ifdef BB_FEATURE_LS_TIMESTAMPS
596         "tu"
597 #endif
598 #ifdef BB_FEATURE_LS_SORTFILES
599         "v"
600 #endif
601 #ifdef BB_FEATURE_AUTOWIDTH
602         "w"
603 #endif
604         "x"
605 #ifdef BB_FEATURE_LS_SORTFILES
606         "X"
607 #endif
608         "] [filenames...]\n"
609 #ifndef BB_FEATURE_TRIVIAL_HELP
610         "\nList directory contents\n\n"
611         "Options:\n"
612         "\t-1\tlist files in a single column\n"
613         "\t-A\tdo not list implied . and ..\n"
614         "\t-a\tdo not hide entries starting with .\n"
615         "\t-C\tlist entries by columns\n"
616 #ifdef BB_FEATURE_LS_TIMESTAMPS
617         "\t-c\twith -l: show ctime (the time of last\n"
618         "\t\tmodification of file status information)\n"
619 #endif
620         "\t-d\tlist directory entries instead of contents\n"
621 #ifdef BB_FEATURE_LS_TIMESTAMPS
622         "\t-e\tlist both full date and full time\n"
623 #endif
624 #ifdef BB_FEATURE_LS_FILETYPES
625         "\t-F\tappend indicator (one of */=@|) to entries\n"
626 #endif
627         "\t-i\tlist the i-node for each file\n"
628         "\t-l\tuse a long listing format\n"
629         "\t-n\tlist numeric UIDs and GIDs instead of names\n"
630 #ifdef BB_FEATURE_LS_FILETYPES
631         "\t-p\tappend indicator (one of /=@|) to entries\n"
632 #endif
633 #ifdef BB_FEATURE_LS_RECURSIVE
634         "\t-R\tlist subdirectories recursively\n"
635 #endif
636 #ifdef BB_FEATURE_LS_SORTFILES
637         "\t-r\tsort the listing in reverse order\n"
638         "\t-S\tsort the listing by file size\n"
639 #endif
640         "\t-s\tlist the size of each file, in blocks\n"
641 #ifdef BB_FEATURE_AUTOWIDTH
642         "\t-T NUM\tassume Tabstop every NUM columns\n"
643 #endif
644 #ifdef BB_FEATURE_LS_TIMESTAMPS
645         "\t-t\twith -l: show modification time (the time of last\n"
646         "\t\tchange of the file)\n"
647         "\t-u\twith -l: show access time (the time of last\n"
648         "\t\taccess of the file)\n"
649 #endif
650 #ifdef BB_FEATURE_LS_SORTFILES
651         "\t-v\tsort the listing by version\n"
652 #endif
653 #ifdef BB_FEATURE_AUTOWIDTH
654         "\t-w NUM\tassume the terminal is NUM columns wide\n"
655 #endif
656         "\t-x\tlist entries by lines instead of by columns\n"
657 #ifdef BB_FEATURE_LS_SORTFILES
658         "\t-X\tsort the listing by extension\n"
659 #endif
660 #endif /*  BB_FEATURE_TRIVIAL_HELP */
661         ;
662 #endif /* BB_LS */
663
664 #if defined BB_LSMOD
665 const char lsmod_usage[] =
666         "lsmod\n"
667 #ifndef BB_FEATURE_TRIVIAL_HELP
668         "\nList the currently loaded kernel modules.\n"
669 #endif
670         ;
671 #endif
672
673 #if defined BB_MAKEDEVS
674 const char makedevs_usage[] =
675         "makedevs NAME TYPE MAJOR MINOR FIRST LAST [s]\n"
676 #ifndef BB_FEATURE_TRIVIAL_HELP
677         "\nCreates a range of block or character special files\n\n"
678         "TYPEs include:\n"
679         "\tb:\tMake a block (buffered) device.\n"
680         "\tc or u:\tMake a character (un-buffered) device.\n"
681         "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n\n"
682         "FIRST specifies the number appended to NAME to create the first device.\n"
683         "LAST specifies the number of the last item that should be created.\n"
684         "If 's' is the last argument, the base device is created as well.\n\n"
685         "For example:\n"
686         "\tmakedevs /dev/ttyS c 4 66 2 63   ->  ttyS2-ttyS63\n"
687         "\tmakedevs /dev/hda b 3 0 0 8 s    ->  hda,hda1-hda8\n"
688 #endif
689         ;
690 #endif
691
692 #if defined BB_MD5SUM
693 const char md5sum_usage[] =
694         "md5sum [OPTION] [FILE]...\n"
695         "or:    md5sum [OPTION] -c [FILE]\n"
696 #ifndef BB_FEATURE_TRIVIAL_HELP
697         "\nPrint or check MD5 checksums.\n\n"
698         "Options:\n"
699         "With no FILE, or when FILE is -, read standard input.\n\n"
700         "\t-b\tread files in binary mode\n"
701         "\t-c\tcheck MD5 sums against given list\n"
702         "\t-t\tread files in text mode (default)\n"
703         "\t-g\tread a string\n"
704         "\nThe following two options are useful only when verifying checksums:\n"
705         "\t-s,\tdon't output anything, status code shows success\n"
706         "\t-w,\twarn about improperly formated MD5 checksum lines\n"
707 #endif
708         ;
709 #endif
710
711 #if defined BB_MKDIR
712 const char mkdir_usage[] =
713         "mkdir [OPTION] DIRECTORY...\n"
714 #ifndef BB_FEATURE_TRIVIAL_HELP
715         "\nCreate the DIRECTORY(ies), if they do not already exist\n\n"
716         "Options:\n"
717
718         "\t-m\tset permission mode (as in chmod), not rwxrwxrwx - umask\n"
719         "\t-p\tno error if existing, make parent directories as needed\n"
720 #endif
721         ;
722 #endif
723
724 #if defined BB_MKFIFO
725 const char mkfifo_usage[] =
726         "mkfifo [OPTIONS] name\n"
727 #ifndef BB_FEATURE_TRIVIAL_HELP
728         "\nCreates a named pipe (identical to 'mknod name p')\n\n"
729         "Options:\n"
730         "\t-m\tcreate the pipe using the specified mode (default a=rw)\n"
731 #endif
732         ;
733 #endif
734
735 #if defined BB_MKFS_MINIX
736 const char mkfs_minix_usage[] =
737         "mkfs.minix [-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]\n"
738 #ifndef BB_FEATURE_TRIVIAL_HELP
739         "\nMake a MINIX filesystem.\n\n"
740         "Options:\n"
741         "\t-c\t\tCheck the device for bad blocks\n"
742         "\t-n [14|30]\tSpecify the maximum length of filenames\n"
743         "\t-i INODES\tSpecify the number of inodes for the filesystem\n"
744         "\t-l FILENAME\tRead the bad blocks list from FILENAME\n"
745         "\t-v\t\tMake a Minix version 2 filesystem\n\n"
746 #endif
747         ;
748 #endif
749
750 #if defined BB_MKNOD
751 const char mknod_usage[] =
752         "mknod [OPTIONS] NAME TYPE MAJOR MINOR\n"
753 #ifndef BB_FEATURE_TRIVIAL_HELP
754         "\nCreate a special file (block, character, or pipe).\n\n"
755         "Options:\n"
756         "\t-m\tcreate the special file using the specified mode (default a=rw)\n\n"
757         "TYPEs include:\n"
758         "\tb:\tMake a block (buffered) device.\n"
759         "\tc or u:\tMake a character (un-buffered) device.\n"
760         "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n"
761 #endif
762         ;
763 #endif
764
765 #if defined BB_MKSWAP
766 const char mkswap_usage[] =
767         "mkswap [-c] [-v0|-v1] device [block-count]\n"
768 #ifndef BB_FEATURE_TRIVIAL_HELP
769         "\nPrepare a disk partition to be used as a swap partition.\n\n"
770         "Options:\n" "\t-c\t\tCheck for read-ability.\n"
771         "\t-v0\t\tMake version 0 swap [max 128 Megs].\n"
772         "\t-v1\t\tMake version 1 swap [big!] (default for kernels > 2.1.117).\n"
773
774         "\tblock-count\tNumber of block to use (default is entire partition).\n"
775 #endif
776         ;
777 #endif
778
779 #if defined BB_MKTEMP
780 const char mktemp_usage[] =
781         "mktemp [-q] TEMPLATE\n"
782 #ifndef BB_FEATURE_TRIVIAL_HELP
783         "\nCreates a temporary file with its name based on TEMPLATE.\n"
784         "TEMPLATE is any name with six `Xs' (i.e. /tmp/temp.XXXXXX).\n"
785 #endif
786         ;
787 #endif
788
789 #if defined BB_MORE
790 const char more_usage[] =
791         "more [FILE ...]\n"
792 #ifndef BB_FEATURE_TRIVIAL_HELP
793         "\nMore is a filter for viewing FILE one screenful at a time.\n"
794 #endif
795         ;
796 #endif
797
798 #if defined BB_MOUNT
799 const char mount_usage[] = 
800         "mount [flags] device directory [-o options,more-options]\n"
801 #ifndef BB_FEATURE_TRIVIAL_HELP
802         "\nMount a filesystem\n\n"
803         "Flags:\n" 
804         "\t-a:\t\tMount all filesystems in fstab.\n"
805 #ifdef BB_MTAB
806         "\t-f:\t\t\"Fake\" mount. Add entry to mount table but don't mount it.\n"
807         "\t-n:\t\tDon't write a mount table entry.\n"
808 #endif
809         "\t-o option:\tOne of many filesystem options, listed below.\n"
810         "\t-r:\t\tMount the filesystem read-only.\n"
811         "\t-t fs-type:\tSpecify the filesystem type.\n"
812         "\t-w:\t\tMount for reading and writing (default).\n"
813         "\n"
814         "Options for use with the \"-o\" flag:\n"
815         "\tasync/sync:\tWrites are asynchronous / synchronous.\n"
816         "\tatime/noatime:\tEnable / disable updates to inode access times.\n"
817         "\tdev/nodev:\tAllow use of special device files / disallow them.\n"
818         "\texec/noexec:\tAllow use of executable files / disallow them.\n"
819 #if defined BB_FEATURE_MOUNT_LOOP
820         "\tloop:\t\tMounts a file via loop device.\n"
821 #endif
822         "\tsuid/nosuid:\tAllow set-user-id-root programs / disallow them.\n"
823         "\tremount:\tRe-mount a currently-mounted filesystem, changing its flags.\n"
824         "\tro/rw:\t\tMount for read-only / read-write.\n"
825         "\nThere are EVEN MORE flags that are specific to each filesystem.\n"
826         "You'll have to see the written documentation for those.\n"
827 #endif
828         ;
829 #endif
830
831 #if defined BB_MT
832 const char mt_usage[] =
833         "mt [-f device] opcode value\n"
834 #ifndef BB_FEATURE_TRIVIAL_HELP
835         "\nControl magnetic tape drive operation\n"
836         "\nAvailable Opcodes:\n\n"
837         "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n"
838         "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n"
839         "ras3 reset retension rew rewoffline seek setblk setdensity\n"
840         "setpart tell unload unlock weof wset\n"
841 #endif
842         ;
843 #endif
844
845 #if defined BB_CP_MV
846 const char mv_usage[] =
847         "mv SOURCE DEST\n"
848         "   or: mv SOURCE... DIRECTORY\n"
849 #ifndef BB_FEATURE_TRIVIAL_HELP
850         "\nRename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.\n"
851 #endif
852         ;
853 #endif
854
855 #if defined BB_NC
856 const char nc_usage[] =
857         "nc [IP] [port]\n" 
858 #ifndef BB_FEATURE_TRIVIAL_HELP
859         "\nNetcat opens a pipe to IP:port\n"
860 #endif
861         ;
862 #endif
863
864 #if defined BB_NSLOOKUP
865 const char nslookup_usage[] =
866         "nslookup [HOST]\n"
867 #ifndef BB_FEATURE_TRIVIAL_HELP
868         "\nQueries the nameserver for the IP address of the given HOST\n"
869 #endif
870 ;
871 #endif
872
873 #if defined BB_PING
874 #if defined BB_FEATURE_SIMPLE_PING
875 const char ping_usage[] =
876         "ping host\n"
877 #ifndef BB_FEATURE_TRIVIAL_HELP
878         "\nSend ICMP ECHO_REQUEST packets to network hosts\n"
879 #endif
880         ;
881 #else /* ! defined BB_FEATURE_SIMPLE_PING */
882 const char ping_usage[] =
883         "ping [OPTION]... host\n"
884 #ifndef BB_FEATURE_TRIVIAL_HELP
885         "\nSend ICMP ECHO_REQUEST packets to network hosts.\n\n"
886         "Options:\n"
887         "\t-c COUNT\tSend only COUNT pings.\n"
888         "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n"
889         "\t-q\t\tQuiet mode, only displays output at start\n"
890         "\t\t\tand when finished.\n"
891 #endif
892         ;
893 #endif
894 #endif
895
896 #if defined BB_POWEROFF
897 const char poweroff_usage[] =
898         "poweroff\n"
899 #ifndef BB_FEATURE_TRIVIAL_HELP
900         "\nHalt the system and request that the kernel shut off the power.\n"
901 #endif
902         ;
903 #endif
904
905 #if defined BB_PRINTF
906 const char printf_usage[] =
907         "printf FORMAT [ARGUMENT...]\n"
908 #ifndef BB_FEATURE_TRIVIAL_HELP
909         "\nFormats and prints ARGUMENT(s) according to FORMAT,\n"
910         "Where FORMAT controls the output exactly as in C printf.\n"
911 #endif
912         ;
913 #endif
914
915 #if defined BB_PS
916 const char ps_usage[] =
917         "ps\n"
918 #ifndef BB_FEATURE_TRIVIAL_HELP
919         "\nReport process status\n"
920         "\nThis version of ps accepts no options.\n"
921 #endif
922         ;
923 #endif
924
925 #if defined BB_PWD
926 const char pwd_usage[] =
927         "pwd\n"
928 #ifndef BB_FEATURE_TRIVIAL_HELP
929         "\nPrint the full filename of the current working directory.\n"
930 #endif
931         ;
932 #endif
933
934 #if defined BB_RDATE
935 const char rdate_usage[] =
936         "rdate [OPTION] HOST\n"
937 #ifndef BB_FEATURE_TRIVIAL_HELP
938         "\nGet and possibly set the system date and time from a remote HOST.\n"
939         "Options:\n"
940         "\t-s\tSet the system date and time (default).\n"
941         "\t-p\tPrint the date and time.\n"
942 #endif
943         ;
944 #endif
945
946 #if defined BB_REBOOT
947 const char reboot_usage[] =
948         "reboot\n"
949 #ifndef BB_FEATURE_TRIVIAL_HELP
950         "\nReboot the system.\n"
951 #endif
952         ;
953 #endif
954
955         
956 #if defined BB_RENICE
957 const char renice_usage[] =
958         "renice priority pid [pid ...]\n"
959 #ifndef BB_FEATURE_TRIVIAL_HELP
960         "\nChanges priority of running processes. Allowed priorities range\n"
961         "from 20 (the process runs only when nothing else is running) to 0\n"
962         "(default priority) to -20 (almost nothing else ever gets to run).\n"
963 #endif
964         ;
965 #endif
966
967
968 #if defined BB_RESET
969 const char reset_usage[] =
970         "reset\n"
971 #ifndef BB_FEATURE_TRIVIAL_HELP
972         "\nResets the screen.\n"
973 #endif
974         ;
975 #endif
976
977 #if defined BB_RM
978 const char rm_usage[] =
979         "rm [OPTION]... FILE...\n"
980 #ifndef BB_FEATURE_TRIVIAL_HELP
981         "\nRemove (unlink) the FILE(s).  You may use '--' to\n"
982         "indicate that all following arguments are non-options.\n\n"
983         "Options:\n"
984         "\t-f\t\tremove existing destinations, never prompt\n"
985         "\t-r or -R\tremove the contents of directories recursively\n"
986 #endif
987         ;
988 #endif
989
990 #if defined BB_RMDIR
991 const char rmdir_usage[] =
992         "rmdir [OPTION]... DIRECTORY...\n"
993 #ifndef BB_FEATURE_TRIVIAL_HELP
994         "\nRemove the DIRECTORY(ies), if they are empty.\n"
995 #endif
996         ;
997 #endif
998
999 #if defined BB_RMMOD
1000 const char rmmod_usage[] =
1001         "rmmod [OPTION]... [MODULE]...\n"
1002 #ifndef BB_FEATURE_TRIVIAL_HELP
1003         "\nUnloads the specified kernel modules from the kernel.\n\n"
1004         "Options:\n" 
1005         "\t-a\tTry to remove all unused kernel modules.\n"
1006 #endif
1007         ;
1008 #endif
1009
1010 #if defined BB_SED
1011 const char sed_usage[] =
1012         "sed [-Vhnef] pattern [files...]\n"
1013 #ifndef BB_FEATURE_TRIVIAL_HELP
1014         "\n"
1015         "-n\t\tsuppress automatic printing of pattern space\n"
1016         "-e script\tadd the script to the commands to be executed\n"
1017         "-f scriptfile\tadd the contents of script-file to the commands to be executed\n"
1018         "-h\t\tdisplay this help message\n"
1019         "\n"
1020         "If no -e or -f is given, the first non-option argument is taken as the\n"
1021         "sed script to interpret. All remaining arguments are names of input\n"
1022         "files; if no input files are specified, then the standard input is read.\n"
1023 #endif
1024         ;
1025 #endif
1026
1027 #if defined BB_SETKEYCODES
1028 const char setkeycodes_usage[] =
1029         "setkeycodes SCANCODE KEYCODE ...\n"
1030 #ifndef BB_FEATURE_TRIVIAL_HELP
1031         "\nSet entries into the kernel's scancode-to-keycode map,\n"
1032         "allowing unusual keyboards to generate usable keycodes.\n\n" 
1033         "SCANCODE may be either xx or e0xx (hexadecimal),\n"
1034         "and KEYCODE is given in decimal\n"
1035 #endif
1036         ;
1037 #endif
1038
1039 #if defined BB_SH
1040 const char shell_usage[] =
1041         "sh [FILE]...\n"
1042         "   or: sh -c command [args]...\n"
1043 #ifndef BB_FEATURE_TRIVIAL_HELP
1044         "\nlash: The BusyBox command interpreter (shell).\n\n"
1045 #endif
1046         ;
1047 #endif
1048
1049 #if defined BB_SLEEP
1050 const char sleep_usage[] =
1051         "sleep N\n" 
1052 #ifndef BB_FEATURE_TRIVIAL_HELP
1053         "\nPause for N seconds.\n"
1054 #endif
1055         ;
1056 #endif
1057
1058 #if defined BB_SORT
1059 const char sort_usage[] =
1060         "sort [-n]"
1061 #ifdef BB_FEATURE_SORT_REVERSE
1062         " [-r]"
1063 #endif
1064         " [FILE]...\n"
1065 #ifndef BB_FEATURE_TRIVIAL_HELP
1066         "\nSorts lines of text in the specified files\n"
1067 #endif
1068         ;
1069 #endif
1070
1071 #if defined BB_SWAPONOFF
1072 const char swapoff_usage[] =
1073         "swapoff [OPTION] [device]\n"
1074 #ifndef BB_FEATURE_TRIVIAL_HELP
1075         "\nStop swapping virtual memory pages on the given device.\n\n"
1076         "Options:\n"
1077         "\t-a\tStop swapping on all swap devices\n"
1078 #endif
1079         ;
1080 #endif
1081
1082 #if defined BB_SWAPONOFF
1083 const char swapon_usage[] =
1084         "swapon [OPTION] [device]\n"
1085 #ifndef BB_FEATURE_TRIVIAL_HELP
1086         "\nStart swapping virtual memory pages on the given device.\n\n"
1087         "Options:\n"
1088         "\t-a\tStart swapping on all swap devices\n"
1089 #endif
1090         ;
1091 #endif
1092
1093 #if defined BB_SYNC
1094 const char sync_usage[] =
1095         "sync\n"
1096 #ifndef BB_FEATURE_TRIVIAL_HELP
1097         "\nWrite all buffered filesystem blocks to disk.\n"
1098 #endif
1099         ;
1100 #endif
1101
1102 #if defined BB_SYSLOGD
1103 const char syslogd_usage[] =
1104         "syslogd [OPTION]...\n"
1105 #ifndef BB_FEATURE_TRIVIAL_HELP
1106         "\nLinux system and kernel (provides klogd) logging utility.\n"
1107         "Note that this version of syslogd/klogd ignores /etc/syslog.conf.\n\n"
1108         "Options:\n"
1109         "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n"
1110         "\t-n\t\tRun as a foreground process\n"
1111 #ifdef BB_FEATURE_KLOGD
1112         "\t-K\t\tDo not start up the klogd process\n"
1113 #endif
1114         "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n"
1115 #ifdef BB_FEATURE_REMOTE_LOG
1116         "\t-R HOST[:PORT]\t\tLog remotely to IP or hostname on PORT (default PORT=514/UDP)\n"
1117 #endif
1118 #endif
1119         ;
1120 #endif
1121
1122 #if defined BB_TAIL
1123 const char tail_usage[] =
1124         "tail [OPTION] [FILE]...\n"
1125 #ifndef BB_FEATURE_TRIVIAL_HELP
1126         "\nPrint last 10 lines of each FILE to standard output.\n"
1127         "With more than one FILE, precede each with a header giving the\n"
1128         "file name. With no FILE, or when FILE is -, read standard input.\n\n"
1129         "Options:\n"
1130 #ifndef BB_FEATURE_SIMPLE_TAIL
1131         "\t-c=N[kbm]\toutput the last N bytes\n"
1132 #endif
1133         "\t-n NUM\t\tPrint last NUM lines instead of first 10\n"
1134         "\t\t\tAlso can be -NUM or +NUM.\n"
1135         "\t-f\t\tOutput data as the file grows.\n"
1136 #ifndef BB_FEATURE_SIMPLE_TAIL
1137         "\t-q\t\tnever output headers giving file names\n"
1138         "\t-s SEC\t\tWait SEC seconds between reads with -f\n"
1139         "\t-v\t\talways output headers giving file names\n\n"
1140         "If the first character of N (bytes or lines) is a `+', output begins with \n"
1141         "the Nth item from the start of each file, otherwise, print the last N items\n"
1142         "in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2).\n"
1143 //#else
1144 //      "\nIf the first character of N (bytes or lines) is a `+', output begins with \n"
1145 //      "the Nth item from the start of each file.\n"
1146 #endif
1147 #endif
1148         ;
1149 #endif
1150
1151 #if defined BB_TAR
1152 const char tar_usage[] =
1153 #ifdef BB_FEATURE_TAR_CREATE
1154         "tar -[cxtvO] "
1155 #else
1156         "tar -[xtvO] "
1157 #endif
1158 #if defined BB_FEATURE_TAR_EXCLUDE
1159         "[--exclude File] "
1160 #endif
1161         "[-f tarFile] [FILE(s)] ...\n"
1162 #ifndef BB_FEATURE_TRIVIAL_HELP
1163         "\nCreate, extract, or list files from a tar file.  Note that\n"
1164         "this version of tar treats hard links as separate files.\n\n"
1165         "Main operation mode:\n"
1166 #ifdef BB_FEATURE_TAR_CREATE
1167         "\tc\t\tcreate\n"
1168 #endif
1169         "\tx\t\textract\n"
1170         "\tt\t\tlist\n"
1171         "\nFile selection:\n"
1172         "\tf\t\tname of tarfile or \"-\" for stdin\n"
1173         "\tO\t\textract to stdout\n"
1174 #if defined BB_FEATURE_TAR_EXCLUDE
1175         "\texclude\t\tfile to exclude\n"
1176 #endif
1177         "\nInformative output:\n"
1178         "\tv\t\tverbosely list files processed\n"
1179 #endif
1180         ;
1181 #endif
1182
1183 #if defined BB_TEE
1184 const char tee_usage[] =
1185         "tee [OPTION]... [FILE]...\n"
1186 #ifndef BB_FEATURE_TRIVIAL_HELP
1187         "\nCopy standard input to each FILE, and also to standard output.\n\n"
1188         "Options:\n" "\t-a\tappend to the given FILEs, do not overwrite\n"
1189 #endif
1190         ;
1191 #endif
1192
1193 #if defined BB_TELNET
1194 const char telnet_usage[] =
1195         "telnet host [port]\n"
1196 #ifndef BB_FEATURE_TRIVIAL_HELP
1197         "\nTelnet is used to establish interactive communication with another\n"
1198         "computer over a network using the TELNET protocol.\n"
1199 #endif
1200         ;
1201 #endif
1202
1203 #if defined BB_TEST
1204 const char test_usage[] =
1205         "test EXPRESSION\n"
1206         "or   [ EXPRESSION ]\n"
1207 #ifndef BB_FEATURE_TRIVIAL_HELP
1208         "\nChecks file types and compares values returning an exit\n"
1209         "code determined by the value of EXPRESSION.\n"
1210 #endif
1211         ;
1212 #endif
1213
1214 #if defined BB_TOUCH
1215 const char touch_usage[] =
1216         "touch [-c] file [file ...]\n"
1217 #ifndef BB_FEATURE_TRIVIAL_HELP
1218         "\nUpdate the last-modified date on the given file[s].\n\n"
1219         "Options:\n"
1220         "\t-c\tDo not create any files\n"
1221 #endif
1222         ;
1223 #endif
1224
1225 #if defined BB_TR
1226 const char tr_usage[] =
1227         "tr [-cds] STRING1 [STRING2]\n"
1228 #ifndef BB_FEATURE_TRIVIAL_HELP
1229         "\nTranslate, squeeze, and/or delete characters from\n"
1230         "standard input, writing to standard output.\n\n"
1231         "Options:\n"
1232         "\t-c\ttake complement of STRING1\n"
1233         "\t-d\tdelete input characters coded STRING1\n"
1234         "\t-s\tsqueeze multiple output characters of STRING2 into one character\n"
1235 #endif
1236         ;
1237 #endif
1238
1239 #if defined BB_TRUE_FALSE
1240 const char true_usage[] =
1241         "true\n"
1242 #ifndef BB_FEATURE_TRIVIAL_HELP
1243         "\nReturn an exit code of TRUE (0).\n"
1244 #endif
1245         ;
1246 #endif
1247
1248 #if defined BB_TTY
1249 const char tty_usage[] =
1250         "tty\n"
1251 #ifndef BB_FEATURE_TRIVIAL_HELP
1252         "\nPrint the file name of the terminal connected to standard input.\n\n"
1253         "Options:\n"
1254         "\t-s\tprint nothing, only return an exit status\n"
1255 #endif
1256         ;
1257 #endif
1258
1259 #if defined BB_UMOUNT
1260 const char umount_usage[] =
1261         "umount [flags] filesystem|directory\n"
1262 #ifndef BB_FEATURE_TRIVIAL_HELP
1263         "Unmount file systems\n"
1264         "\nFlags:\n" "\t-a:\tUnmount all file systems"
1265 #ifdef BB_MTAB
1266         " in /etc/mtab\n\t-n:\tDon't erase /etc/mtab entries\n"
1267 #else
1268         "\n"
1269 #endif
1270         "\t-r:\tTry to remount devices as read-only if mount is busy\n"
1271 #if defined BB_FEATURE_MOUNT_FORCE
1272         "\t-f:\tForce filesystem umount (i.e. unreachable NFS server)\n"
1273 #endif
1274 #if defined BB_FEATURE_MOUNT_LOOP
1275         "\t-l:\tDo not free loop device (if a loop device has been used)\n"
1276 #endif
1277 #endif
1278         ;
1279 #endif
1280
1281 #if defined BB_UNAME
1282 const char uname_usage[] =
1283         "uname [OPTION]...\n"
1284 #ifndef BB_FEATURE_TRIVIAL_HELP
1285         "\nPrint certain system information.  With no OPTION, same as -s.\n\n"
1286         "Options:\n"
1287         "\t-a\tprint all information\n"
1288         "\t-m\tthe machine (hardware) type\n"
1289         "\t-n\tprint the machine's network node hostname\n"
1290         "\t-r\tprint the operating system release\n"
1291         "\t-s\tprint the operating system name\n"
1292
1293         "\t-p\tprint the host processor type\n"
1294         "\t-v\tprint the operating system version\n"
1295 #endif
1296         ;
1297 #endif
1298
1299 #if defined BB_UNIQ
1300 const char uniq_usage[] =
1301         "uniq [OPTION]... [INPUT [OUTPUT]]\n"
1302 #ifndef BB_FEATURE_TRIVIAL_HELP
1303         "\nDiscard all but one of successive identical lines from INPUT\n"
1304         "(or standard input), writing to OUTPUT (or standard output).\n"
1305 #endif
1306         ;
1307 #endif
1308
1309 #if defined BB_UPDATE
1310 const char update_usage[] =
1311         "update [options]\n"
1312 #ifndef BB_FEATURE_TRIVIAL_HELP
1313         "\nPeriodically flushes filesystem buffers.\n\n"
1314         "Options:\n"
1315         "\t-S\tforce use of sync(2) instead of flushing\n"
1316         "\t-s SECS\tcall sync this often (default 30)\n"
1317         "\t-f SECS\tflush some buffers this often (default 5)\n"
1318 #endif
1319         ;
1320 #endif
1321
1322 #if defined BB_UPTIME
1323 const char uptime_usage[] =
1324         "uptime\n"
1325 #ifndef BB_FEATURE_TRIVIAL_HELP
1326         "\nDisplay the time since the last boot.\n"
1327 #endif
1328         ;
1329 #endif
1330
1331 #if defined BB_USLEEP
1332 const char usleep_usage[] =
1333         "usleep N\n" 
1334 #ifndef BB_FEATURE_TRIVIAL_HELP
1335         "\nPause for N microseconds.\n"
1336 #endif
1337         ;
1338 #endif
1339
1340 #if defined BB_UUDECODE
1341 const char uudecode_usage[] =
1342         "uudecode [FILE]...\n"
1343 #ifndef BB_FEATURE_TRIVIAL_HELP
1344         "\nUudecode a file that is uuencoded.\n\n"
1345         "Options:\n"
1346         "\t-o FILE\tdirect output to FILE\n"
1347 #endif
1348         ;
1349 #endif
1350
1351 #if defined BB_UUENCODE
1352 const char uuencode_usage[] =
1353         "uuencode [OPTION] [INFILE] REMOTEFILE\n"
1354 #ifndef BB_FEATURE_TRIVIAL_HELP
1355         "\nUuencode a file.\n\n"
1356         "Options:\n"
1357         "\t-m\tuse base64 encoding as of RFC1521\n"
1358 #endif
1359         ;
1360 #endif
1361
1362 #if defined BB_WC
1363 const char wc_usage[] =
1364         "wc [OPTION]... [FILE]...\n"
1365 #ifndef BB_FEATURE_TRIVIAL_HELP
1366         "\nPrint line, word, and byte counts for each FILE, and a total line if\n"
1367         "more than one FILE is specified.  With no FILE, read standard input.\n\n"
1368         "Options:\n"
1369         "\t-c\tprint the byte counts\n"
1370         "\t-l\tprint the newline counts\n"
1371
1372         "\t-L\tprint the length of the longest line\n"
1373         "\t-w\tprint the word counts\n"
1374 #endif
1375         ;
1376 #endif
1377
1378 #if defined BB_WGET
1379 const char wget_usage[] = "wget [-c] [-O file] url\n"
1380 #ifndef BB_FEATURE_TRIVIAL_HELP
1381         "\nwget retrieves files via HTTP\n\n"
1382         "Options:\n"
1383         "\t-c\tcontinue retrieval of aborted transfers\n"
1384         "\t-O\tsave to filename ('-' for stdout)\n"
1385 #endif
1386         ;
1387 #endif
1388
1389 #if defined BB_WHICH
1390 const char which_usage[] =
1391         "which [COMMAND ...]\n"
1392 #ifndef BB_FEATURE_TRIVIAL_HELP
1393         "\nLocates a COMMAND.\n"
1394 #endif
1395         ;
1396 #endif
1397
1398 #if defined BB_WHOAMI
1399 const char whoami_usage[] =
1400         "whoami\n"
1401 #ifndef BB_FEATURE_TRIVIAL_HELP
1402         "\nPrints the user name associated with the current effective user id.\n"
1403 #endif
1404         ;
1405 #endif
1406
1407 #if defined BB_YES
1408 const char yes_usage[] =
1409         "yes [OPTION]... [STRING]...\n"
1410 #ifndef BB_FEATURE_TRIVIAL_HELP
1411         "\nRepeatedly outputs a line with all specified STRING(s), or `y'.\n"
1412 #endif
1413         ;
1414 #endif