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