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