aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-09-05 15:45:51 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-09-05 15:45:51 +0000
commitcef23e0d8bed1f21ff74eeef7804fd63c908a45f (patch)
tree3a6a2b194925103e114848dfea1e37729905d45e
parent3638cc44629703585f29f4b7125da1e7b3a1aedc (diff)
downloadbusybox-w32-cef23e0d8bed1f21ff74eeef7804fd63c908a45f.tar.gz
busybox-w32-cef23e0d8bed1f21ff74eeef7804fd63c908a45f.tar.bz2
busybox-w32-cef23e0d8bed1f21ff74eeef7804fd63c908a45f.zip
usage: trim a bit
function old new delta packed_usage 23113 23011 -102 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-102) Total: -102 bytes text data bss dec hex filename 770610 1051 10764 782425 bf059 busybox_old 770508 1051 10764 782323 beff3 busybox_unstripped
-rw-r--r--include/usage.h66
1 files changed, 32 insertions, 34 deletions
diff --git a/include/usage.h b/include/usage.h
index 6a88b6cf1..d62795f3d 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -16,7 +16,7 @@
16#define addgroup_full_usage \ 16#define addgroup_full_usage \
17 "Add a group to the system"USE_FEATURE_ADDUSER_TO_GROUP(" or add an user to a group") \ 17 "Add a group to the system"USE_FEATURE_ADDUSER_TO_GROUP(" or add an user to a group") \
18 "\n\nOptions:\n" \ 18 "\n\nOptions:\n" \
19 " -g GID Specify gid" 19 " -g GID Group id"
20 20
21#define adduser_trivial_usage \ 21#define adduser_trivial_usage \
22 "[OPTIONS] user_name" 22 "[OPTIONS] user_name"
@@ -28,7 +28,7 @@
28 " -s SHELL Login shell\n" \ 28 " -s SHELL Login shell\n" \
29 " -G GROUP Add user to existing group\n" \ 29 " -G GROUP Add user to existing group\n" \
30 " -S Create a system user (ignored)\n" \ 30 " -S Create a system user (ignored)\n" \
31 " -D Do not assign a password (logins still possible via ssh)\n" \ 31 " -D Do not assign a password\n" \
32 " -H Do not create home directory" 32 " -H Do not create home directory"
33 33
34#define adjtimex_trivial_usage \ 34#define adjtimex_trivial_usage \
@@ -40,7 +40,7 @@
40 " -q Quiet\n" \ 40 " -q Quiet\n" \
41 " -o offset Time offset, microseconds\n" \ 41 " -o offset Time offset, microseconds\n" \
42 " -f frequency Frequency adjust, integer kernel units (65536 is 1ppm)\n" \ 42 " -f frequency Frequency adjust, integer kernel units (65536 is 1ppm)\n" \
43 " (positive values make the system clock run faster)\n" \ 43 " (positive values make clock run faster)\n" \
44 " -t tick Microseconds per tick, usually 10000\n" \ 44 " -t tick Microseconds per tick, usually 10000\n" \
45 " -p timeconstant" 45 " -p timeconstant"
46 46
@@ -70,10 +70,10 @@
70 "\n -d Delete a specified entry" \ 70 "\n -d Delete a specified entry" \
71 "\n -v Verbose" \ 71 "\n -v Verbose" \
72 "\n -n Don't resolve names" \ 72 "\n -n Don't resolve names" \
73 "\n -i if Specify network interface (e.g. eth0)" \ 73 "\n -i if Network interface (e.g. eth0)" \
74 "\n -D Read <hwaddr> from given device" \ 74 "\n -D Read <hwaddr> from given device" \
75 "\n -A, -p Specify protocol family" \ 75 "\n -A, -p Protocol family" \
76 "\n -H hwtype Specify hardware address type" 76 "\n -H hwtype Hardware address type"
77 77
78#define arping_trivial_usage \ 78#define arping_trivial_usage \
79 "[-fqbDUA] [-c count] [-w timeout] [-i device] [-s sender] target" 79 "[-fqbDUA] [-c count] [-w timeout] [-i device] [-s sender] target"
@@ -103,7 +103,7 @@
103#define awk_full_usage \ 103#define awk_full_usage \
104 "Options:\n" \ 104 "Options:\n" \
105 " -v var=val Set variable\n" \ 105 " -v var=val Set variable\n" \
106 " -F sep Use 'sep' as field separator\n" \ 106 " -F sep Use sep as field separator\n" \
107 " -f filename Read program from file" 107 " -f filename Read program from file"
108 108
109#define basename_trivial_usage \ 109#define basename_trivial_usage \
@@ -468,11 +468,11 @@
468#define crontab_full_usage \ 468#define crontab_full_usage \
469 " file [opts] Replace crontab from file\n" \ 469 " file [opts] Replace crontab from file\n" \
470 " - [opts] Replace crontab from stdin\n" \ 470 " - [opts] Replace crontab from stdin\n" \
471 " -u user Specify user\n" \ 471 " -u user User\n" \
472 " -l [user] List crontab for user\n" \ 472 " -l [user] List crontab for user\n" \
473 " -e [user] Edit crontab for user\n" \ 473 " -e [user] Edit crontab for user\n" \
474 " -d [user] Delete crontab for user\n" \ 474 " -d [user] Delete crontab for user\n" \
475 " -c dir Specify crontab directory" 475 " -c dir Crontab directory"
476 476
477#define cryptpw_trivial_usage \ 477#define cryptpw_trivial_usage \
478 "[-a des|md5] [string]" 478 "[-a des|md5] [string]"
@@ -509,11 +509,11 @@
509 USE_FEATURE_DATE_ISOFMT( \ 509 USE_FEATURE_DATE_ISOFMT( \
510 " -I[TIMESPEC] Outputs an ISO-8601 compliant date/time string\n" \ 510 " -I[TIMESPEC] Outputs an ISO-8601 compliant date/time string\n" \
511 " TIMESPEC='date' (or missing) for date only,\n" \ 511 " TIMESPEC='date' (or missing) for date only,\n" \
512 " 'hours', 'minutes', or 'seconds' for date and,\n" \ 512 " 'hours', 'minutes', or 'seconds' for date and\n" \
513 " time to the indicated precision\n" \ 513 " time to the indicated precision\n" \
514 " -D hint Use 'hint' as date format, via strptime()\n" \ 514 " -D hint Use 'hint' as date format, via strptime()\n" \
515 ) \ 515 ) \
516 " -s Sets time described by STRING\n" \ 516 " -s STRING Sets time described by STRING\n" \
517 " -r FILE Displays the last modification time of FILE\n" \ 517 " -r FILE Displays the last modification time of FILE\n" \
518 " -u Prints or sets Coordinated Universal Time" 518 " -u Prints or sets Coordinated Universal Time"
519#define date_example_usage \ 519#define date_example_usage \
@@ -596,9 +596,9 @@
596 "\n\nOptions:" \ 596 "\n\nOptions:" \
597 "\n mntpnt The mount point where devfs is mounted" \ 597 "\n mntpnt The mount point where devfs is mounted" \
598 "\n -v Print the protocol version numbers for devfsd" \ 598 "\n -v Print the protocol version numbers for devfsd" \
599 "\n and the kernel-side protocol version and exits" \ 599 "\n and the kernel-side protocol version and exit" \
600 USE_DEVFSD_FG_NP( \ 600 USE_DEVFSD_FG_NP( \
601 "\n -fg Run the daemon in the foreground" \ 601 "\n -fg Run in foreground" \
602 "\n -np Exit after parsing the configuration file" \ 602 "\n -np Exit after parsing the configuration file" \
603 "\n and processing synthetic REGISTER events," \ 603 "\n and processing synthetic REGISTER events," \
604 "\n do not poll for events") 604 "\n do not poll for events")
@@ -1606,7 +1606,7 @@
1606 " -c Copy the file, default\n" \ 1606 " -c Copy the file, default\n" \
1607 " -d Create directories\n" \ 1607 " -d Create directories\n" \
1608 " -g Set group ownership\n" \ 1608 " -g Set group ownership\n" \
1609 " -m Set permission modes\n" \ 1609 " -m Set permissions\n" \
1610 " -o Set ownership\n" \ 1610 " -o Set ownership\n" \
1611 " -p Preserve date\n" \ 1611 " -p Preserve date\n" \
1612 " -s Strip symbol tables" \ 1612 " -s Strip symbol tables" \
@@ -1672,7 +1672,7 @@
1672#define ipcs_trivial_usage \ 1672#define ipcs_trivial_usage \
1673 "[[-smq] -i shmid] | [[-asmq] [-tcplu]]" 1673 "[[-smq] -i shmid] | [[-asmq] [-tcplu]]"
1674#define ipcs_full_usage \ 1674#define ipcs_full_usage \
1675 " -i Specify a specific resource id\n" \ 1675 " -i Show a specific resource\n" \
1676 "Resource specification:\n" \ 1676 "Resource specification:\n" \
1677 " -m Shared memory segments\n" \ 1677 " -m Shared memory segments\n" \
1678 " -q Message queues\n" \ 1678 " -q Message queues\n" \
@@ -1764,7 +1764,7 @@
1764 "Kernel logger" \ 1764 "Kernel logger" \
1765 "\n\nOptions:\n" \ 1765 "\n\nOptions:\n" \
1766 " -c n Sets the default log level of console messages to n\n" \ 1766 " -c n Sets the default log level of console messages to n\n" \
1767 " -n Run as foreground process" 1767 " -n Run in foreground"
1768 1768
1769#define length_trivial_usage \ 1769#define length_trivial_usage \
1770 "STRING" 1770 "STRING"
@@ -1781,11 +1781,9 @@
1781 "changed, and files can be manipulated in various ways." \ 1781 "changed, and files can be manipulated in various ways." \
1782 "\n\nOptions:\n" \ 1782 "\n\nOptions:\n" \
1783 " -E Quit once the end of a file is reached\n" \ 1783 " -E Quit once the end of a file is reached\n" \
1784 " -M Display a status line containing the current line numbers\n" \ 1784 " -M,-m Display a status line containing the current line numbers\n" \
1785 " and the percentage through the file\n" \ 1785 " and the percentage through the file\n" \
1786 " -N Prefix line numbers to each line\n" \ 1786 " -N Prefix line numbers to each line\n" \
1787 " -m Display a status line containing the percentage through the\n" \
1788 " file\n" \
1789 " -~ Suppress ~s displayed when input past the end of the file is\n" \ 1787 " -~ Suppress ~s displayed when input past the end of the file is\n" \
1790 " reached" 1788 " reached"
1791 1789
@@ -1804,7 +1802,7 @@
1804 "\n\nOptions:\n" \ 1802 "\n\nOptions:\n" \
1805 " -s Make symlinks instead of hardlinks\n" \ 1803 " -s Make symlinks instead of hardlinks\n" \
1806 " -f Remove existing destination files\n" \ 1804 " -f Remove existing destination files\n" \
1807 " -n No dereference symlinks - treat like normal file\n" \ 1805 " -n Don't dereference symlinks - treat like normal file\n" \
1808 " -b Make a backup of the target (if exists) before link operation\n" \ 1806 " -b Make a backup of the target (if exists) before link operation\n" \
1809 " -S suf Use suffix instead of ~ when making backup files" 1807 " -S suf Use suffix instead of ~ when making backup files"
1810#define ln_example_usage \ 1808#define ln_example_usage \
@@ -2144,10 +2142,10 @@
2144#define mkfs_minix_full_usage \ 2142#define mkfs_minix_full_usage \
2145 "Make a MINIX filesystem" \ 2143 "Make a MINIX filesystem" \
2146 "\n\nOptions:\n" \ 2144 "\n\nOptions:\n" \
2147 " -c Check the device for bad blocks\n" \ 2145 " -c Check device for bad blocks\n" \
2148 " -n [14|30] Specify the maximum length of filenames\n" \ 2146 " -n [14|30] Maximum length of filenames\n" \
2149 " -i INODES Specify the number of inodes for the filesystem\n" \ 2147 " -i INODES Number of inodes for the filesystem\n" \
2150 " -l FILENAME Read the bad blocks list from FILENAME\n" \ 2148 " -l FILENAME Read bad blocks list from FILENAME\n" \
2151 " -v Make a Minix version 2 filesystem" 2149 " -v Make a Minix version 2 filesystem"
2152 2150
2153#define mknod_trivial_usage \ 2151#define mknod_trivial_usage \
@@ -2281,7 +2279,7 @@
2281 ) \ 2279 ) \
2282 " -o option One of many filesystem options, listed below\n" \ 2280 " -o option One of many filesystem options, listed below\n" \
2283 " -r Mount the filesystem read-only\n" \ 2281 " -r Mount the filesystem read-only\n" \
2284 " -t fs-type Specify the filesystem type\n" \ 2282 " -t fs-type Filesystem type\n" \
2285 " -w Mount for reading and writing (default)\n" \ 2283 " -w Mount for reading and writing (default)\n" \
2286 "\n" \ 2284 "\n" \
2287 "Options for use with the \"-o\" flag:\n" \ 2285 "Options for use with the \"-o\" flag:\n" \
@@ -3095,7 +3093,7 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
3095 " -f Ignore case\n" \ 3093 " -f Ignore case\n" \
3096 " -g General numerical sort\n" \ 3094 " -g General numerical sort\n" \
3097 " -i Ignore unprintable characters\n" \ 3095 " -i Ignore unprintable characters\n" \
3098 " -k Specify sort key\n" \ 3096 " -k Sort key\n" \
3099 " -M Sort month\n") \ 3097 " -M Sort month\n") \
3100 " -n Sort numbers\n" \ 3098 " -n Sort numbers\n" \
3101 USE_FEATURE_SORT_BIG( \ 3099 USE_FEATURE_SORT_BIG( \
@@ -3146,7 +3144,7 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
3146 "\n -S|--start Start" \ 3144 "\n -S|--start Start" \
3147 "\n -K|--stop Stop" \ 3145 "\n -K|--stop Stop" \
3148 "\n -a|--startas pathname Starts process specified by pathname" \ 3146 "\n -a|--startas pathname Starts process specified by pathname" \
3149 "\n -b|--background Force process into background" \ 3147 "\n -b|--background Put process into background" \
3150 "\n -u|--user username|uid Stop this user's processes" \ 3148 "\n -u|--user username|uid Stop this user's processes" \
3151 "\n -x|--exec executable Program to either start or check" \ 3149 "\n -x|--exec executable Program to either start or check" \
3152 "\n -m|--make-pidfile Create the -p file and enter pid in it" \ 3150 "\n -m|--make-pidfile Create the -p file and enter pid in it" \
@@ -3338,7 +3336,7 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
3338 "System logging utility.\n" \ 3336 "System logging utility.\n" \
3339 "Note that this version of syslogd ignores /etc/syslog.conf." \ 3337 "Note that this version of syslogd ignores /etc/syslog.conf." \
3340 "\n\nOptions:" \ 3338 "\n\nOptions:" \
3341 "\n -n Run as foreground process" \ 3339 "\n -n Run in foreground" \
3342 "\n -O FILE Log to given file (default=/var/log/messages)" \ 3340 "\n -O FILE Log to given file (default=/var/log/messages)" \
3343 "\n -l n Set local log level" \ 3341 "\n -l n Set local log level" \
3344 "\n -S Smaller logging output" \ 3342 "\n -S Smaller logging output" \
@@ -3472,7 +3470,7 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
3472 USE_FEATURE_TELNETD_STANDALONE( \ 3470 USE_FEATURE_TELNETD_STANDALONE( \
3473 "\n -p PORT Port to listen to" \ 3471 "\n -p PORT Port to listen to" \
3474 "\n -b ADDR Address to bind to" \ 3472 "\n -b ADDR Address to bind to" \
3475 "\n -F Stay in foreground" \ 3473 "\n -F Run in foreground" \
3476 "\n -i Run as inetd subservice" \ 3474 "\n -i Run as inetd subservice" \
3477 ) 3475 )
3478 3476
@@ -3613,7 +3611,7 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
3613 " -t tos Type-of-service in probe packets (default 0)\n" \ 3611 " -t tos Type-of-service in probe packets (default 0)\n" \
3614 " -w wait Time in seconds to wait for a response to a probe\n" \ 3612 " -w wait Time in seconds to wait for a response to a probe\n" \
3615 " (default 3 sec)\n" \ 3613 " (default 3 sec)\n" \
3616 " -g Specify a loose source route gateway (8 max)" 3614 " -g Loose source route gateway (8 max)"
3617 3615
3618 3616
3619#define true_trivial_usage \ 3617#define true_trivial_usage \
@@ -3664,7 +3662,7 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
3664 "\n -r,--request=IP IP address to request" \ 3662 "\n -r,--request=IP IP address to request" \
3665 "\n -s,--script=file Run file at dhcp events (default: /usr/share/udhcpc/default.script)" \ 3663 "\n -s,--script=file Run file at dhcp events (default: /usr/share/udhcpc/default.script)" \
3666 "\n -t,--retries=N Send up to N request packets"\ 3664 "\n -t,--retries=N Send up to N request packets"\
3667 "\n -f,--foreground Stay in foreground" \ 3665 "\n -f,--foreground Run in foreground" \
3668 "\n -b,--background Background if lease cannot be immediately negotiated" \ 3666 "\n -b,--background Background if lease cannot be immediately negotiated" \
3669 "\n -S,--syslog Log to syslog too" \ 3667 "\n -S,--syslog Log to syslog too" \
3670 "\n -n,--now Exit with failure if lease cannot be immediately negotiated" \ 3668 "\n -n,--now Exit with failure if lease cannot be immediately negotiated" \
@@ -3677,7 +3675,7 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
3677 3675
3678#define udhcpd_full_usage \ 3676#define udhcpd_full_usage \
3679 "DHCP server" \ 3677 "DHCP server" \
3680 "\n -f Stay in foreground" \ 3678 "\n -f Run in foreground" \
3681 "\n -S Log to syslog too" 3679 "\n -S Log to syslog too"
3682 3680
3683#define umount_trivial_usage \ 3681#define umount_trivial_usage \
@@ -3857,7 +3855,7 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
3857 "Periodically write to watchdog device DEV" \ 3855 "Periodically write to watchdog device DEV" \
3858 "\n\nOptions:" \ 3856 "\n\nOptions:" \
3859 "\n -t N Timer period (default 30)" \ 3857 "\n -t N Timer period (default 30)" \
3860 "\n -F Stay in the foreground and don't fork" \ 3858 "\n -F Run in foreground" \
3861 "\n" \ 3859 "\n" \
3862 "\nUse -t 500ms to specify period in milliseconds" 3860 "\nUse -t 500ms to specify period in milliseconds"
3863 3861
@@ -3940,7 +3938,7 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
3940#define zcip_full_usage \ 3938#define zcip_full_usage \
3941 "Manage a ZeroConf IPv4 link-local address" \ 3939 "Manage a ZeroConf IPv4 link-local address" \
3942 "\n\nOptions:\n" \ 3940 "\n\nOptions:\n" \
3943 " -f Foreground mode\n" \ 3941 " -f Run in foreground\n" \
3944 " -q Quit after address (no daemon)\n" \ 3942 " -q Quit after address (no daemon)\n" \
3945 " -r 169.254.x.x Request this address first\n" \ 3943 " -r 169.254.x.x Request this address first\n" \
3946 " -v Verbose" 3944 " -v Verbose"