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