diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2004-09-14 16:23:56 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2004-09-14 16:23:56 +0000 |
commit | ab1955c2367d18e25fde1791a2660ae69976c623 (patch) | |
tree | fcf3ed794e5b4c58f13bd03f649f2ffb95891d67 | |
parent | d2bd7d8dd5e277e7852c76003aeea592399e164b (diff) | |
download | busybox-w32-ab1955c2367d18e25fde1791a2660ae69976c623.tar.gz busybox-w32-ab1955c2367d18e25fde1791a2660ae69976c623.tar.bz2 busybox-w32-ab1955c2367d18e25fde1791a2660ae69976c623.zip |
Patch from Felipe Kellermann, adds missing applet usage options, removes usage
for options that are currently not implemented and fixes typos.
-rw-r--r-- | include/usage.h | 82 |
1 files changed, 51 insertions, 31 deletions
diff --git a/include/usage.h b/include/usage.h index f87f367c4..377eb10e7 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -219,6 +219,7 @@ | |||
219 | "\ti\t\textract\n" \ | 219 | "\ti\t\textract\n" \ |
220 | "\tm\t\tpreserve mtime\n" \ | 220 | "\tm\t\tpreserve mtime\n" \ |
221 | "\tt\t\tlist\n" \ | 221 | "\tt\t\tlist\n" \ |
222 | "\tv\t\tverbose\n" \ | ||
222 | "\tu\t\tunconditional overwrite\n" \ | 223 | "\tu\t\tunconditional overwrite\n" \ |
223 | "\tF\t\tinput from file" | 224 | "\tF\t\tinput from file" |
224 | 225 | ||
@@ -281,6 +282,7 @@ | |||
281 | "\t\t\t`hours', `minutes', or `seconds' for date and,\n" \ | 282 | "\t\t\t`hours', `minutes', or `seconds' for date and,\n" \ |
282 | "\t\t\ttime to the indicated precision.\n") \ | 283 | "\t\t\ttime to the indicated precision.\n") \ |
283 | "\t-s\t\tSets time described by STRING\n" \ | 284 | "\t-s\t\tSets time described by STRING\n" \ |
285 | "\t-r FILE\t\tDisplays the last modification time of FILE\n" \ | ||
284 | "\t-u\t\tPrints or sets Coordinated Universal Time" | 286 | "\t-u\t\tPrints or sets Coordinated Universal Time" |
285 | #define date_example_usage \ | 287 | #define date_example_usage \ |
286 | "$ date\n" \ | 288 | "$ date\n" \ |
@@ -423,15 +425,17 @@ | |||
423 | "\t-d\toutput will be in DOS format" | 425 | "\t-d\toutput will be in DOS format" |
424 | 426 | ||
425 | #define dpkg_trivial_usage \ | 427 | #define dpkg_trivial_usage \ |
426 | "[-iCPru] package_name" | 428 | "[-ilCPru] [-F option] package_name" |
427 | #define dpkg_full_usage \ | 429 | #define dpkg_full_usage \ |
428 | "dpkg is a utility to install, remove and manage Debian packages.\n\n" \ | 430 | "dpkg is a utility to install, remove and manage Debian packages.\n\n" \ |
429 | "Options:\n" \ | 431 | "Options:\n" \ |
430 | "\t-i\tInstall the package\n" \ | 432 | "\t-i\t\tInstall the package\n" \ |
431 | "\t-C\tConfigure an unpackaged package\n" \ | 433 | "\t-l\t\tList of installed packages\n" \ |
432 | "\t-P\tPurge all files of a package\n" \ | 434 | "\t-C\t\tConfigure an unpackaged package\n" \ |
433 | "\t-r\tRemove all but the configuration files for a package\n" \ | 435 | "\t-F depends\tIgnore depency problems\n" \ |
434 | "\t-u\tUnpack a package, but don't configure it" | 436 | "\t-P\t\tPurge all files of a package\n" \ |
437 | "\t-r\t\tRemove all but the configuration files for a package\n" \ | ||
438 | "\t-u\t\tUnpack a package, but don't configure it" | ||
435 | 439 | ||
436 | #define dpkg_deb_trivial_usage \ | 440 | #define dpkg_deb_trivial_usage \ |
437 | "[-cefxX] FILE [argument]" | 441 | "[-cefxX] FILE [argument]" |
@@ -606,7 +610,7 @@ | |||
606 | "\t-n\tDon't verify after format" | 610 | "\t-n\tDon't verify after format" |
607 | 611 | ||
608 | #define fdisk_trivial_usage \ | 612 | #define fdisk_trivial_usage \ |
609 | "[-l] [-v] [-b SSZ] [-u] DISK" | 613 | "[-luv] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK" |
610 | #define fdisk_full_usage \ | 614 | #define fdisk_full_usage \ |
611 | "Change partition table\n" \ | 615 | "Change partition table\n" \ |
612 | "Options:\n" \ | 616 | "Options:\n" \ |
@@ -614,6 +618,9 @@ | |||
614 | "\t-u Give Start and End in sector (instead of cylinder) units\n" \ | 618 | "\t-u Give Start and End in sector (instead of cylinder) units\n" \ |
615 | "\t-s PARTITION Give partition size(s) in blocks\n" \ | 619 | "\t-s PARTITION Give partition size(s) in blocks\n" \ |
616 | "\t-b 2048: (for certain MO disks) use 2048-byte sectors\n" \ | 620 | "\t-b 2048: (for certain MO disks) use 2048-byte sectors\n" \ |
621 | "\t-C CYLINDERS Set the number of cylinders\n" \ | ||
622 | "\t-H HEADS Set the number of heads\n" \ | ||
623 | "\t-S SECTORS Set the number of sectors\n" \ | ||
617 | "\t-v Give fdisk version" | 624 | "\t-v Give fdisk version" |
618 | 625 | ||
619 | #ifdef CONFIG_FEATURE_FIND_TYPE | 626 | #ifdef CONFIG_FEATURE_FIND_TYPE |
@@ -739,7 +746,7 @@ | |||
739 | "\t-Q, --quiet-output No normal output\n" \ | 746 | "\t-Q, --quiet-output No normal output\n" \ |
740 | "\t-s, --shell=shell Set shell quoting conventions\n" \ | 747 | "\t-s, --shell=shell Set shell quoting conventions\n" \ |
741 | "\t-T, --test Test for getopt(1) version\n" \ | 748 | "\t-T, --test Test for getopt(1) version\n" \ |
742 | "\t-u, --unqote Do not quote the output" | 749 | "\t-u, --unquoted Do not quote the output" |
743 | #define getopt_example_usage \ | 750 | #define getopt_example_usage \ |
744 | "$ cat getopt.test\n" \ | 751 | "$ cat getopt.test\n" \ |
745 | "#!/bin/sh\n" \ | 752 | "#!/bin/sh\n" \ |
@@ -804,6 +811,7 @@ | |||
804 | "Uncompress FILE (or standard input if FILE is '-').\n\n" \ | 811 | "Uncompress FILE (or standard input if FILE is '-').\n\n" \ |
805 | "Options:\n" \ | 812 | "Options:\n" \ |
806 | "\t-c\tWrite output to standard output\n" \ | 813 | "\t-c\tWrite output to standard output\n" \ |
814 | "\t-f\tForce read when source is a terminal\n" \ | ||
807 | "\t-t\tTest compressed file integrity" | 815 | "\t-t\tTest compressed file integrity" |
808 | #define gunzip_example_usage \ | 816 | #define gunzip_example_usage \ |
809 | "$ ls -la /tmp/BusyBox*\n" \ | 817 | "$ ls -la /tmp/BusyBox*\n" \ |
@@ -819,7 +827,8 @@ | |||
819 | "When FILE is '-' or unspecified, reads standard input. Implies -c.\n\n" \ | 827 | "When FILE is '-' or unspecified, reads standard input. Implies -c.\n\n" \ |
820 | "Options:\n" \ | 828 | "Options:\n" \ |
821 | "\t-c\tWrite output to standard output instead of FILE.gz\n" \ | 829 | "\t-c\tWrite output to standard output instead of FILE.gz\n" \ |
822 | "\t-d\tdecompress" | 830 | "\t-d\tDecompress\n" \ |
831 | "\t-f\tForce write when destination is a terminal" | ||
823 | #define gzip_example_usage \ | 832 | #define gzip_example_usage \ |
824 | "$ ls -la /tmp/busybox*\n" \ | 833 | "$ ls -la /tmp/busybox*\n" \ |
825 | "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/busybox.tar\n" \ | 834 | "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/busybox.tar\n" \ |
@@ -1271,6 +1280,7 @@ | |||
1271 | "\t-f\tForce module to load into the wrong kernel version.\n" \ | 1280 | "\t-f\tForce module to load into the wrong kernel version.\n" \ |
1272 | "\t-k\tMake module autoclean-able.\n" \ | 1281 | "\t-k\tMake module autoclean-able.\n" \ |
1273 | "\t-v\tverbose output\n" \ | 1282 | "\t-v\tverbose output\n" \ |
1283 | "\t-q\tquiet output\n" \ | ||
1274 | "\t-L\tLock to prevent simultaneous loads of a module\n" \ | 1284 | "\t-L\tLock to prevent simultaneous loads of a module\n" \ |
1275 | USAGE_INSMOD_MAP("\t-m\tOutput load map to stdout\n") \ | 1285 | USAGE_INSMOD_MAP("\t-m\tOutput load map to stdout\n") \ |
1276 | "\t-o NAME\tSet internal module name to NAME\n" \ | 1286 | "\t-o NAME\tSet internal module name to NAME\n" \ |
@@ -1282,6 +1292,7 @@ | |||
1282 | "Copies files and set attributes\n\n" \ | 1292 | "Copies files and set attributes\n\n" \ |
1283 | "Options:\n" \ | 1293 | "Options:\n" \ |
1284 | "\t-c\tcopy the file, default\n" \ | 1294 | "\t-c\tcopy the file, default\n" \ |
1295 | "\t-d\tcreate directories\n" \ | ||
1285 | "\t-g\tset group ownership\n" \ | 1296 | "\t-g\tset group ownership\n" \ |
1286 | "\t-m\tset permission modes\n" \ | 1297 | "\t-m\tset permission modes\n" \ |
1287 | "\t-o\tset ownership\n" \ | 1298 | "\t-o\tset ownership\n" \ |
@@ -1652,10 +1663,13 @@ | |||
1652 | "\tblock-count\tNumber of block to use (default is entire partition)." | 1663 | "\tblock-count\tNumber of block to use (default is entire partition)." |
1653 | 1664 | ||
1654 | #define mktemp_trivial_usage \ | 1665 | #define mktemp_trivial_usage \ |
1655 | "[-q] TEMPLATE" | 1666 | "[-dq] TEMPLATE" |
1656 | #define mktemp_full_usage \ | 1667 | #define mktemp_full_usage \ |
1657 | "Creates a temporary file with its name based on TEMPLATE.\n" \ | 1668 | "Creates a temporary file with its name based on TEMPLATE.\n" \ |
1658 | "TEMPLATE is any name with six `Xs' (i.e., /tmp/temp.XXXXXX)." | 1669 | "TEMPLATE is any name with six `Xs' (i.e., /tmp/temp.XXXXXX).\n\n" \ |
1670 | "Options:\n" \ | ||
1671 | "\t-d\t\tMake a directory instead of a file\n" \ | ||
1672 | "\t-q\t\tFail silently if an error occurs" | ||
1659 | #define mktemp_example_usage \ | 1673 | #define mktemp_example_usage \ |
1660 | "$ mktemp /tmp/temp.XXXXXX\n" \ | 1674 | "$ mktemp /tmp/temp.XXXXXX\n" \ |
1661 | "/tmp/temp.mWiLjM\n" \ | 1675 | "/tmp/temp.mWiLjM\n" \ |
@@ -1663,9 +1677,16 @@ | |||
1663 | "-rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM\n" | 1677 | "-rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM\n" |
1664 | 1678 | ||
1665 | #define modprobe_trivial_usage \ | 1679 | #define modprobe_trivial_usage \ |
1666 | "[FILE ...]" | 1680 | "[-knqrsv] [MODULE ...]" |
1667 | #define modprobe_full_usage \ | 1681 | #define modprobe_full_usage \ |
1668 | "Used for high level module loading and unloading." | 1682 | "Used for high level module loading and unloading.\n\n" \ |
1683 | "Options:\n" \ | ||
1684 | "\t-k\tMake module autoclean-able.\n" \ | ||
1685 | "\t-n\tJust show what would be done.\n" \ | ||
1686 | "\t-q\tQuiet output.\n" \ | ||
1687 | "\t-r\tRemove module (stacks) or do autoclean.\n" \ | ||
1688 | "\t-s\tReport via syslog instead of stderr.\n" \ | ||
1689 | "\t-v\tVerbose output." | ||
1669 | #define modprobe_example_usage \ | 1690 | #define modprobe_example_usage \ |
1670 | "$ modprobe cdrom\n" | 1691 | "$ modprobe cdrom\n" |
1671 | 1692 | ||
@@ -1735,10 +1756,13 @@ | |||
1735 | "setpart tell unload unlock weof wset" | 1756 | "setpart tell unload unlock weof wset" |
1736 | 1757 | ||
1737 | #define mv_trivial_usage \ | 1758 | #define mv_trivial_usage \ |
1738 | "SOURCE DEST\n" \ | 1759 | "[OPTION]... SOURCE DEST\n" \ |
1739 | "or: mv SOURCE... DIRECTORY" | 1760 | "or: mv [OPTION]... SOURCE... DIRECTORY" |
1740 | #define mv_full_usage \ | 1761 | #define mv_full_usage \ |
1741 | "Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY." | 1762 | "Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.\n\n" \ |
1763 | "Options:\n" \ | ||
1764 | "\t-f\tdon't prompt before overwriting\n" \ | ||
1765 | "\t-i\tinteractive, prompt before overwrite" | ||
1742 | #define mv_example_usage \ | 1766 | #define mv_example_usage \ |
1743 | "$ mv /tmp/foo /bin/bar\n" | 1767 | "$ mv /tmp/foo /bin/bar\n" |
1744 | 1768 | ||
@@ -1953,12 +1977,6 @@ | |||
1953 | "$ pwd\n" \ | 1977 | "$ pwd\n" \ |
1954 | "/root\n" | 1978 | "/root\n" |
1955 | 1979 | ||
1956 | #define raid_start_trivial_usage \ | ||
1957 | "MD_DEVICE DISK_DEVICE" | ||
1958 | #define raid_start_full_usage \ | ||
1959 | "Start MD_DEVICE, taking superblock from DISK_DEVICE.\n" \ | ||
1960 | "Example: raid_start /dev/md0 /dev/sdb" | ||
1961 | |||
1962 | #define rdate_trivial_usage \ | 1980 | #define rdate_trivial_usage \ |
1963 | "[-sp] HOST" | 1981 | "[-sp] HOST" |
1964 | #define rdate_full_usage \ | 1982 | #define rdate_full_usage \ |
@@ -2291,17 +2309,16 @@ | |||
2291 | "sysctl - configure kernel parameters at runtime\n\n" \ | 2309 | "sysctl - configure kernel parameters at runtime\n\n" \ |
2292 | "Options:\n" \ | 2310 | "Options:\n" \ |
2293 | "\t-n\tUse this option to disable printing of the key name when printing values.\n" \ | 2311 | "\t-n\tUse this option to disable printing of the key name when printing values.\n" \ |
2294 | "\t-e\tUse this option to ignore errors about unknown keys.\n" \ | ||
2295 | "\t-w\tUse this option when you want to change a sysctl setting.\n" \ | 2312 | "\t-w\tUse this option when you want to change a sysctl setting.\n" \ |
2296 | "\t-p\tLoad in sysctl settings from the file specified or /etc/sysctl.conf if none given.\n" \ | 2313 | "\t-p\tLoad in sysctl settings from the file specified or /etc/sysctl.conf if none given.\n" \ |
2297 | "\t-a\tDisplay all values currently available.\n" \ | 2314 | "\t-a\tDisplay all values currently available.\n" \ |
2298 | "\t-A\tDisplay all values currently available in table form." | 2315 | "\t-A\tDisplay all values currently available in table form." |
2299 | #define sysctl_example_usage | 2316 | #define sysctl_example_usage |
2300 | "sysctl [-n] [-e] variable ...\n" \ | 2317 | "sysctl [-n] variable ...\n" \ |
2301 | "sysctl [-n] [-e] -w variable=value ...\n" \ | 2318 | "sysctl [-n] -w variable=value ...\n" \ |
2302 | "sysctl [-n] [-e] -a\n" \ | 2319 | "sysctl [-n] -a\n" \ |
2303 | "sysctl [-n] [-e] -p <file>\t(default /etc/sysctl.conf)\n" \ | 2320 | "sysctl [-n] -p <file>\t(default /etc/sysctl.conf)\n" \ |
2304 | "sysctl [-n] [-e] -A\n" | 2321 | "sysctl [-n] -A\n" |
2305 | #endif | 2322 | #endif |
2306 | 2323 | ||
2307 | #define syslogd_trivial_usage \ | 2324 | #define syslogd_trivial_usage \ |
@@ -2312,7 +2329,8 @@ | |||
2312 | "Options:\n" \ | 2329 | "Options:\n" \ |
2313 | "\t-m MIN\t\tMinutes between MARK lines (default=20, 0=off)\n" \ | 2330 | "\t-m MIN\t\tMinutes between MARK lines (default=20, 0=off)\n" \ |
2314 | "\t-n\t\tRun as a foreground process\n" \ | 2331 | "\t-n\t\tRun as a foreground process\n" \ |
2315 | "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)" \ | 2332 | "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n" \ |
2333 | "\t-S\t\tMake logging output smaller." \ | ||
2316 | USAGE_ROTATE_LOGFILE( \ | 2334 | USAGE_ROTATE_LOGFILE( \ |
2317 | "\n\t-s SIZE\t\tMax size (KB) before rotate (default=200KB, 0=off)\n" \ | 2335 | "\n\t-s SIZE\t\tMax size (KB) before rotate (default=200KB, 0=off)\n" \ |
2318 | "\t-b NUM\t\tNumber of rotated logs to keep (default=1, max=99, 0=purge)") \ | 2336 | "\t-b NUM\t\tNumber of rotated logs to keep (default=1, max=99, 0=purge)") \ |
@@ -2443,7 +2461,8 @@ | |||
2443 | #define telnetd_full_usage \ | 2461 | #define telnetd_full_usage \ |
2444 | "Telnetd uses incoming TELNET connections via inetd.\n"\ | 2462 | "Telnetd uses incoming TELNET connections via inetd.\n"\ |
2445 | "Options:\n" \ | 2463 | "Options:\n" \ |
2446 | "\t-l LOGIN\texec LOGIN on connect (default /bin/sh)" | 2464 | "\t-l LOGIN\texec LOGIN on connect (default /bin/sh)\n" \ |
2465 | "\t-f issue_file\tDisplay issue_file instead of /etc/issue." | ||
2447 | #else | 2466 | #else |
2448 | #define telnetd_trivial_usage \ | 2467 | #define telnetd_trivial_usage \ |
2449 | "[OPTION]" | 2468 | "[OPTION]" |
@@ -2451,7 +2470,8 @@ | |||
2451 | "Telnetd listens for incoming TELNET connections on PORT.\n"\ | 2470 | "Telnetd listens for incoming TELNET connections on PORT.\n"\ |
2452 | "Options:\n" \ | 2471 | "Options:\n" \ |
2453 | "\t-p PORT\tlisten for connections on PORT (default 23)\n"\ | 2472 | "\t-p PORT\tlisten for connections on PORT (default 23)\n"\ |
2454 | "\t-l LOGIN\texec LOGIN on connect (default /bin/sh)" | 2473 | "\t-l LOGIN\texec LOGIN on connect (default /bin/sh)\n"\ |
2474 | "\t-f issue_file\tDisplay issue_file instead of /etc/issue." | ||
2455 | #endif | 2475 | #endif |
2456 | 2476 | ||
2457 | #define test_trivial_usage \ | 2477 | #define test_trivial_usage \ |