aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-04-06 17:16:36 +0000
committerEric Andersen <andersen@codepoet.org>2004-04-06 17:16:36 +0000
commita151d195040305704a252913938e9704a2141241 (patch)
tree3bd69b6086781a44c059f2d7f25191ac11854009
parent0a87ac65463a85bb41e2afb8c285e65de165d029 (diff)
downloadbusybox-w32-a151d195040305704a252913938e9704a2141241.tar.gz
busybox-w32-a151d195040305704a252913938e9704a2141241.tar.bz2
busybox-w32-a151d195040305704a252913938e9704a2141241.zip
Yet more doc cleanups. Many thanks to Robert P. J. Day for
kindly reviewing the existing docs and providing helpful feedback.
-rw-r--r--include/usage.h87
1 files changed, 46 insertions, 41 deletions
diff --git a/include/usage.h b/include/usage.h
index e2adbc183..c5f978956 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -612,11 +612,11 @@
612#define fdisk_full_usage \ 612#define fdisk_full_usage \
613 "Change partition table\n" \ 613 "Change partition table\n" \
614 "Options:\n" \ 614 "Options:\n" \
615 "-l List partition table(s)\n" \ 615 "\t-l List partition table(s)\n" \
616 "-u Give Start and End in sector (instead of cylinder) units\n" \ 616 "\t-u Give Start and End in sector (instead of cylinder) units\n" \
617 "-s PARTITION Give partition size(s) in blocks\n" \ 617 "\t-s PARTITION Give partition size(s) in blocks\n" \
618 "-b 2048: (for certain MO disks) use 2048-byte sectors\n" \ 618 "\t-b 2048: (for certain MO disks) use 2048-byte sectors\n" \
619 "-v Give fdisk version" 619 "\t-v Give fdisk version"
620 620
621#ifdef CONFIG_FEATURE_FIND_TYPE 621#ifdef CONFIG_FEATURE_FIND_TYPE
622 #define USAGE_FIND_TYPE(a) a 622 #define USAGE_FIND_TYPE(a) a
@@ -668,7 +668,7 @@
668 "/etc/passwd\n" 668 "/etc/passwd\n"
669 669
670#define fold_trivial_usage \ 670#define fold_trivial_usage \
671 "[bsw] [FILE]" 671 "[-bsw] [FILE]"
672#define fold_full_usage \ 672#define fold_full_usage \
673 "Wrap input lines in each FILE (standard input by default), writing to\n" \ 673 "Wrap input lines in each FILE (standard input by default), writing to\n" \
674 "standard output.\n\n" \ 674 "standard output.\n\n" \
@@ -766,7 +766,7 @@
766#define getty_trivial_usage \ 766#define getty_trivial_usage \
767 "[OPTIONS]... baud_rate,... line [termtype]" 767 "[OPTIONS]... baud_rate,... line [termtype]"
768#define getty_full_usage \ 768#define getty_full_usage \
769 "\nOpens a tty, prompts for a login name, then invokes /bin/login\n\n" \ 769 "Opens a tty, prompts for a login name, then invokes /bin/login\n\n" \
770 "Options:\n" \ 770 "Options:\n" \
771 "\t-h\t\tEnable hardware (RTS/CTS) flow control.\n" \ 771 "\t-h\t\tEnable hardware (RTS/CTS) flow control.\n" \
772 "\t-i\t\tDo not display /etc/issue before running login.\n" \ 772 "\t-i\t\tDo not display /etc/issue before running login.\n" \
@@ -1005,13 +1005,13 @@
1005 USAGE_HTTPD_AUTH_MD5(" [-m pass]") \ 1005 USAGE_HTTPD_AUTH_MD5(" [-m pass]") \
1006 " [-d/-e <string>]" 1006 " [-d/-e <string>]"
1007#define httpd_full_usage \ 1007#define httpd_full_usage \
1008 "Listens for incoming http server requests.\n"\ 1008 "Listens for incoming http server requests.\n\n"\
1009 "Options:\n" \ 1009 "Options:\n" \
1010 "\t-c FILE\tSpecifies configuration file. (default httpd.conf)\n" \ 1010 "\t-c FILE\t\tSpecifies configuration file. (default httpd.conf)\n" \
1011 USAGE_HTTPD_STANDALONE("\t-p PORT\tServer port (default 80)\n") \ 1011 USAGE_HTTPD_STANDALONE("\t-p PORT\tServer port (default 80)\n") \
1012 USAGE_HTTPD_SETUID("\t-u USER\tSet uid to USER after listening privilegies port\n") \ 1012 USAGE_HTTPD_SETUID("\t-u USER\tSet uid to USER after listening privilegies port\n") \
1013 USAGE_HTTPD_BASIC_AUTH("\t-r REALM\tAuthentication Realm for Basic Authentication\n") \ 1013 USAGE_HTTPD_BASIC_AUTH("\t-r REALM\tAuthentication Realm for Basic Authentication\n") \
1014 USAGE_HTTPD_AUTH_MD5("\t-m PASS\tCrypt PASS with md5 algorithm\n") \ 1014 USAGE_HTTPD_AUTH_MD5("\t-m PASS\t\tCrypt PASS with md5 algorithm\n") \
1015 "\t-e STRING\tHtml encode STRING\n" \ 1015 "\t-e STRING\tHtml encode STRING\n" \
1016 "\t-d STRING\tURL decode STRING" 1016 "\t-d STRING\tURL decode STRING"
1017 1017
@@ -1092,7 +1092,7 @@
1092#define ifup_trivial_usage \ 1092#define ifup_trivial_usage \
1093 "<-ahinv> <ifaces...>" 1093 "<-ahinv> <ifaces...>"
1094#define ifup_full_usage \ 1094#define ifup_full_usage \
1095 "Usage: ifup <options> <ifaces...>\n\n" \ 1095 "ifup <options> <ifaces...>\n\n" \
1096 "Options:\n" \ 1096 "Options:\n" \
1097 "\t-h\tthis help\n" \ 1097 "\t-h\tthis help\n" \
1098 "\t-a\tde/configure all interfaces automatically\n" \ 1098 "\t-a\tde/configure all interfaces automatically\n" \
@@ -1106,7 +1106,7 @@
1106#define ifdown_trivial_usage \ 1106#define ifdown_trivial_usage \
1107 "<-ahinv> <ifaces...>" 1107 "<-ahinv> <ifaces...>"
1108#define ifdown_full_usage \ 1108#define ifdown_full_usage \
1109 "Usage: ifdown <options> <ifaces...>\n\n" \ 1109 "ifdown <options> <ifaces...>\n\n" \
1110 "Options:\n" \ 1110 "Options:\n" \
1111 "\t-h\tthis help\n" \ 1111 "\t-h\tthis help\n" \
1112 "\t-a\tde/configure all interfaces automatically\n" \ 1112 "\t-a\tde/configure all interfaces automatically\n" \
@@ -1120,10 +1120,10 @@
1120#define inetd_trivial_usage \ 1120#define inetd_trivial_usage \
1121 "[-q len] [conf]" 1121 "[-q len] [conf]"
1122#define inetd_full_usage \ 1122#define inetd_full_usage \
1123 "Usage: [-q len] [conf]\n\n" \ 1123 "Listens for network connections and launches programs\n\n" \
1124 "Option:\n" \ 1124 "Option:\n" \
1125 "\t-q\tSets the size of the socket listen queue to\n" \ 1125 "\t-q\tSets the size of the socket listen queue to\n" \
1126 "the specified value. Default is 128." 1126 "\t\tthe specified value. Default is 128."
1127 1127
1128#define init_trivial_usage \ 1128#define init_trivial_usage \
1129 "" 1129 ""
@@ -1270,13 +1270,13 @@
1270 "\t-k\tMake module autoclean-able.\n" \ 1270 "\t-k\tMake module autoclean-able.\n" \
1271 "\t-v\tverbose output\n" \ 1271 "\t-v\tverbose output\n" \
1272 "\t-L\tLock to prevent simultaneous loads of a module\n" \ 1272 "\t-L\tLock to prevent simultaneous loads of a module\n" \
1273 USAGE_INSMOD_MAP("\t-m\tOutput load map to stdout") \ 1273 USAGE_INSMOD_MAP("\t-m\tOutput load map to stdout\n") \
1274 "\t-x\tdo not export externs" 1274 "\t-x\tdo not export externs"
1275 1275
1276#define install_trivial_usage \ 1276#define install_trivial_usage \
1277 "[cgmops] [sources] <dest|directory>" 1277 "[-cgmops] [sources] <dest|directory>"
1278#define install_full_usage \ 1278#define install_full_usage \
1279 "copy files and set attributes\n\n" \ 1279 "Copies files and set attributes\n\n" \
1280 "Options:\n" \ 1280 "Options:\n" \
1281 "\t-c\tcopy the file, default\n" \ 1281 "\t-c\tcopy the file, default\n" \
1282 "\t-g\tset group ownership\n" \ 1282 "\t-g\tset group ownership\n" \
@@ -1293,7 +1293,8 @@
1293 "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }" 1293 "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }"
1294 1294
1295#define ipaddr_trivial_usage \ 1295#define ipaddr_trivial_usage \
1296 "{ {add|del} IFADDR dev STRING | {show|flush} [ dev STRING ] [ to PREFIX ] }" 1296 "{ {add|del} IFADDR dev STRING | {show|flush}\n" \
1297 "\t\t[ dev STRING ] [ to PREFIX ] }"
1297#define ipaddr_full_usage \ 1298#define ipaddr_full_usage \
1298 "ipaddr {add|del} IFADDR dev STRING\n" \ 1299 "ipaddr {add|del} IFADDR dev STRING\n" \
1299 "ipaddr {show|flush} [ dev STRING ] [ scope SCOPE-ID ]\n" \ 1300 "ipaddr {show|flush} [ dev STRING ] [ scope SCOPE-ID ]\n" \
@@ -1336,7 +1337,8 @@
1336 "iplink show [ DEVICE ]" 1337 "iplink show [ DEVICE ]"
1337 1338
1338#define iproute_trivial_usage \ 1339#define iproute_trivial_usage \
1339 "{ list | flush | { add | del | change | append | replace | monitor } ROUTE }" 1340 "{ list | flush | { add | del | change | append |\n" \
1341 "\t\treplace | monitor } ROUTE }"
1340#define iproute_full_usage \ 1342#define iproute_full_usage \
1341 "iproute { list | flush } SELECTOR\n" \ 1343 "iproute { list | flush } SELECTOR\n" \
1342 "iproute get ADDRESS [ from ADDRESS iif STRING ]\n" \ 1344 "iproute get ADDRESS [ from ADDRESS iif STRING ]\n" \
@@ -1346,8 +1348,9 @@
1346 "ROUTE := [ TYPE ] PREFIX [ tos TOS ] [ proto RTPROTO ]" 1348 "ROUTE := [ TYPE ] PREFIX [ tos TOS ] [ proto RTPROTO ]"
1347 1349
1348#define iptunnel_trivial_usage \ 1350#define iptunnel_trivial_usage \
1349 "{ add | change | del | show } [ NAME ] [ mode { ipip | gre | sit } ]\n" \ 1351 "{ add | change | del | show } [ NAME ]\n" \
1350 "\t[ remote ADDR ] [ local ADDR ] [ ttl TTL ]" 1352 "\t\t[ mode { ipip | gre | sit } ]\n" \
1353 "\t\t[ remote ADDR ] [ local ADDR ] [ ttl TTL ]"
1351#define iptunnel_full_usage \ 1354#define iptunnel_full_usage \
1352 "iptunnel { add | change | del | show } [ NAME ]\n" \ 1355 "iptunnel { add | change | del | show } [ NAME ]\n" \
1353 " [ mode { ipip | gre | sit } ] [ remote ADDR ] [ local ADDR ]\n" \ 1356 " [ mode { ipip | gre | sit } ] [ remote ADDR ] [ local ADDR ]\n" \
@@ -1455,7 +1458,7 @@
1455#define logread_trivial_usage \ 1458#define logread_trivial_usage \
1456 "[OPTION]..." 1459 "[OPTION]..."
1457#define logread_full_usage \ 1460#define logread_full_usage \
1458 "Shows the messages from syslogd (using circular buffer).\n\n" 1461 "Shows the messages from syslogd (using circular buffer).\n\n" \
1459 "Options:\n" \ 1462 "Options:\n" \
1460 "\t-f\t\toutput data as the log grows" 1463 "\t-f\t\toutput data as the log grows"
1461 1464
@@ -1551,9 +1554,9 @@
1551 "\tmakedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n" \ 1554 "\tmakedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n" \
1552 "\tmakedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8" 1555 "\tmakedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8"
1553#define makedevs_example_usage \ 1556#define makedevs_example_usage \
1554 "$ makedevs /dev/ttyS c 4 66 2 63\n" \ 1557 "# makedevs /dev/ttyS c 4 66 2 63\n" \
1555 "[creates ttyS2-ttyS63]\n" \ 1558 "[creates ttyS2-ttyS63]\n" \
1556 "$ makedevs /dev/hda b 3 0 0 8 s\n" \ 1559 "# makedevs /dev/hda b 3 0 0 8 s\n" \
1557 "[creates hda,hda1-hda8]\n" 1560 "[creates hda,hda1-hda8]\n"
1558 1561
1559#ifdef CONFIG_FEATURE_MD5_SHA1_SUM_CHECK 1562#ifdef CONFIG_FEATURE_MD5_SHA1_SUM_CHECK
@@ -1585,16 +1588,16 @@
1585 "^D\n" 1588 "^D\n"
1586 1589
1587#define mesg_trivial_usage \ 1590#define mesg_trivial_usage \
1588 "mesg [y|n]" 1591 "[y|n]"
1589#define mesg_full_usage \ 1592#define mesg_full_usage \
1590 "mesg [Y|N], controls write access to your terminal\n" \ 1593 "mesg controls write access to your terminal\n" \
1591 "\ty\tAllow write access to your terminal.\n" \ 1594 "\ty\tAllow write access to your terminal.\n" \
1592 "\tn\tDisallow write access to your terminal.\n" 1595 "\tn\tDisallow write access to your terminal.\n"
1593 1596
1594#define minit_trivial_usage \ 1597#define minit_trivial_usage \
1595 "[-spPrRC]" 1598 "[-spPrRC]"
1596#define minit_full_usage \ 1599#define minit_full_usage \
1597 "[-spPrRC]" 1600 "A small replacement for SysV init"
1598 1601
1599#define mkdir_trivial_usage \ 1602#define mkdir_trivial_usage \
1600 "[OPTION] DIRECTORY..." 1603 "[OPTION] DIRECTORY..."
@@ -1798,15 +1801,17 @@
1798#define netstat_trivial_usage \ 1801#define netstat_trivial_usage \
1799 "[-laenrtuwx]" 1802 "[-laenrtuwx]"
1800#define netstat_full_usage \ 1803#define netstat_full_usage \
1801 "-l display listening server sockets\n" \ 1804 "Netstat displays Linux networking information.\n\n" \
1802 "-a display all sockets (default: connected)\n" \ 1805 "Options:\n" \
1803 "-e display other/more information\n" \ 1806 "\t-l display listening server sockets\n" \
1804 "-n don't resolve names\n" \ 1807 "\t-a display all sockets (default: connected)\n" \
1805 "-r display routing table\n" \ 1808 "\t-e display other/more information\n" \
1806 "-t tcp sockets\n" \ 1809 "\t-n don't resolve names\n" \
1807 "-u udp sockets\n" \ 1810 "\t-r display routing table\n" \
1808 "-w raw sockets\n" \ 1811 "\t-t tcp sockets\n" \
1809 "-x unix sockets" 1812 "\t-u udp sockets\n" \
1813 "\t-w raw sockets\n" \
1814 "\t-x unix sockets"
1810 1815
1811#define nslookup_trivial_usage \ 1816#define nslookup_trivial_usage \
1812 "[HOST] [SERVER]" 1817 "[HOST] [SERVER]"
@@ -1984,7 +1989,7 @@
1984#define readlink_trivial_usage \ 1989#define readlink_trivial_usage \
1985 "" 1990 ""
1986#define readlink_full_usage \ 1991#define readlink_full_usage \
1987 "Read a symbolic link." 1992 "Displays the value of a symbolic link."
1988 1993
1989#define realpath_trivial_usage \ 1994#define realpath_trivial_usage \
1990 "pathname ..." 1995 "pathname ..."
@@ -2075,7 +2080,7 @@
2075#define run_parts_full_usage \ 2080#define run_parts_full_usage \
2076 "Run a bunch of scripts in a directory.\n\n" \ 2081 "Run a bunch of scripts in a directory.\n\n" \
2077 "Options:\n" \ 2082 "Options:\n" \
2078 "\t-t\t\tTest only what file will be executed, without execute them.\n" \ 2083 "\t-t\tPrints what would be run, but does not actually run anything.\n" \
2079 "\t-a ARG\tPass ARG as an argument for every program invoked.\n" \ 2084 "\t-a ARG\tPass ARG as an argument for every program invoked.\n" \
2080 "\t-u MASK\tSet the umask to MASK before executing every program." 2085 "\t-u MASK\tSet the umask to MASK before executing every program."
2081 2086
@@ -2202,16 +2207,16 @@
2202 "f\n" 2207 "f\n"
2203 2208
2204#define start_stop_daemon_trivial_usage \ 2209#define start_stop_daemon_trivial_usage \
2205 "[OPTIONS] [-S|--start|-K|--stop] ... [-- arguments...]\n" 2210 "[OPTIONS] [--start|--stop] ... [-- arguments...]\n"
2206#define start_stop_daemon_full_usage \ 2211#define start_stop_daemon_full_usage \
2207 "Program to start and stop services."\ 2212 "Program to start and stop services."\
2208 "\n\nOptions:"\ 2213 "\n\nOptions:"\
2209 "\n\t-S|--start\t\t\tstart"\ 2214 "\n\t-S|--start\t\t\tstart"\
2210 "\n\t-K|--stop\t\t\tstop"\ 2215 "\n\t-K|--stop\t\t\tstop"\
2211 "\n\t-a|--startas <pathname>\t\tstart the process specified by pathname"\ 2216 "\n\t-a|--startas <pathname>\t\tstarts process specified by pathname"\
2212 "\n\t-b|--background\t\t\tforce process into background"\ 2217 "\n\t-b|--background\t\t\tforce process into background"\
2213 "\n\t-u|--user <username>|<uid>\tstop this user's processes"\ 2218 "\n\t-u|--user <username>|<uid>\tstop this user's processes"\
2214 "\n\t-x|--exec <executable>\t\tprogram to start/check if it is running"\ 2219 "\n\t-x|--exec <executable>\t\tprogram to either start or check"\
2215 "\n\t-n|--name <process-name>\tstop processes with this name"\ 2220 "\n\t-n|--name <process-name>\tstop processes with this name"\
2216 "\n\t-p|--pidfile <pid-file>\t\tsave or load pid using a pid-file"\ 2221 "\n\t-p|--pidfile <pid-file>\t\tsave or load pid using a pid-file"\
2217 "\n\t-q|--quiet\t\t\tbe quiet" \ 2222 "\n\t-q|--quiet\t\t\tbe quiet" \