aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-10-18 11:11:12 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-10-18 11:11:12 +0000
commit03630784374501baa4d6a81144e54aa7601f5e19 (patch)
tree1fc382ea827b6986b238e33587449b2b20eb3ab4
parent73e5ed22068254b060c57302e56a8b26638370b0 (diff)
downloadbusybox-w32-03630784374501baa4d6a81144e54aa7601f5e19.tar.gz
busybox-w32-03630784374501baa4d6a81144e54aa7601f5e19.tar.bz2
busybox-w32-03630784374501baa4d6a81144e54aa7601f5e19.zip
more of usage text fixes wrt long options
-rw-r--r--include/usage.h75
1 files changed, 60 insertions, 15 deletions
diff --git a/include/usage.h b/include/usage.h
index 3ee996172..d9a6ae729 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1717,13 +1717,26 @@
1717#define ipcalc_full_usage \ 1717#define ipcalc_full_usage \
1718 "Calculate IP network settings from a IP address" \ 1718 "Calculate IP network settings from a IP address" \
1719 "\n\nOptions:" \ 1719 "\n\nOptions:" \
1720 "\n -b --broadcast Display calculated broadcast address" \ 1720 USE_FEATURE_IPCALC_LONG_OPTIONS( \
1721 "\n -n --network Display calculated network address" \ 1721 "\n -b,--broadcast Display calculated broadcast address" \
1722 "\n -m --netmask Display default netmask for IP" \ 1722 "\n -n,--network Display calculated network address" \
1723 "\n -m,--netmask Display default netmask for IP" \
1723 USE_FEATURE_IPCALC_FANCY( \ 1724 USE_FEATURE_IPCALC_FANCY( \
1724 "\n -p --prefix Display the prefix for IP/NETMASK" \ 1725 "\n -p,--prefix Display the prefix for IP/NETMASK" \
1725 "\n -h --hostname Display first resolved host name" \ 1726 "\n -h,--hostname Display first resolved host name" \
1726 "\n -s --silent Don't ever display error messages") 1727 "\n -s,--silent Don't ever display error messages" \
1728 ) \
1729 ) \
1730 SKIP_FEATURE_IPCALC_LONG_OPTIONS( \
1731 "\n -b Display calculated broadcast address" \
1732 "\n -n Display calculated network address" \
1733 "\n -m Display default netmask for IP" \
1734 USE_FEATURE_IPCALC_FANCY( \
1735 "\n -p Display the prefix for IP/NETMASK" \
1736 "\n -h Display first resolved host name" \
1737 "\n -s Don't ever display error messages" \
1738 ) \
1739 )
1727 1740
1728#define ipcrm_trivial_usage \ 1741#define ipcrm_trivial_usage \
1729 "[-[MQS] key] [-[mqs] id]" 1742 "[-[MQS] key] [-[mqs] id]"
@@ -2971,15 +2984,22 @@
2971 "[-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [args]\n" \ 2984 "[-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [args]\n" \
2972 " runcon CONTEXT COMMAND [args]" 2985 " runcon CONTEXT COMMAND [args]"
2973#define runcon_full_usage \ 2986#define runcon_full_usage \
2974 "runcon [-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [args]\n" \
2975 "runcon CONTEXT COMMAND [args]\n" \
2976 "Run a program in a different security context\n\n" \ 2987 "Run a program in a different security context\n\n" \
2977 " CONTEXT Complete security context\n" \ 2988 " CONTEXT Complete security context\n" \
2978 " -c, --compute Compute process transition context before modifying\n" \ 2989 USE_GETOPT_LONG( \
2979 " -t, --type=TYPE Type (for same role as parent)\n" \ 2990 " -c,--compute Compute process transition context before modifying\n" \
2980 " -u, --user=USER User identity\n" \ 2991 " -t,--type=TYPE Type (for same role as parent)\n" \
2981 " -r, --role=ROLE Role\n" \ 2992 " -u,--user=USER User identity\n" \
2982 " -l, --range=RNG Levelrange" \ 2993 " -r,--role=ROLE Role\n" \
2994 " -l,--range=RNG Levelrange" \
2995 ) \
2996 SKIP_GETOPT_LONG( \
2997 " -c Compute process transition context before modifying\n" \
2998 " -t TYPE Type (for same role as parent)\n" \
2999 " -u USER User identity\n" \
3000 " -r ROLE Role\n" \
3001 " -l RNG Levelrange" \
3002 )
2983 3003
2984#define run_parts_trivial_usage \ 3004#define run_parts_trivial_usage \
2985 "[-t] "USE_FEATURE_RUN_PARTS_FANCY("[-l] ")"[-a ARG] [-u MASK] DIRECTORY" 3005 "[-t] "USE_FEATURE_RUN_PARTS_FANCY("[-l] ")"[-a ARG] [-u MASK] DIRECTORY"
@@ -3786,6 +3806,7 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
3786 "[-Cfbnqtv] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE]\n" \ 3806 "[-Cfbnqtv] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE]\n" \
3787 " [-p pidfile] [-r IP] [-s script]" 3807 " [-p pidfile] [-r IP] [-s script]"
3788#define udhcpc_full_usage \ 3808#define udhcpc_full_usage \
3809 USE_GETOPT_LONG( \
3789 " -V,--vendorclass=CLASSID Set vendor class identifier" \ 3810 " -V,--vendorclass=CLASSID Set vendor class identifier" \
3790 "\n -i,--interface=INTERFACE Interface to use (default: eth0)" \ 3811 "\n -i,--interface=INTERFACE Interface to use (default: eth0)" \
3791 "\n -H,-h,--hostname=HOSTNAME Client hostname" \ 3812 "\n -H,-h,--hostname=HOSTNAME Client hostname" \
@@ -3802,6 +3823,25 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
3802 "\n -q,--quit Quit after obtaining lease" \ 3823 "\n -q,--quit Quit after obtaining lease" \
3803 "\n -R,--release Release IP on quit" \ 3824 "\n -R,--release Release IP on quit" \
3804 "\n -v,--version Display version" \ 3825 "\n -v,--version Display version" \
3826 ) \
3827 SKIP_GETOPT_LONG( \
3828 " -V CLASSID Set vendor class identifier" \
3829 "\n -i INTERFACE Interface to use (default: eth0)" \
3830 "\n -H,-h HOSTNAME Client hostname" \
3831 "\n -c CLIENTID Set client identifier" \
3832 "\n -C Suppress default client identifier" \
3833 "\n -p file Store process ID of daemon in file" \
3834 "\n -r IP IP address to request" \
3835 "\n -s file Run file at dhcp events (default: /usr/share/udhcpc/default.script)" \
3836 "\n -t N Send up to N request packets"\
3837 "\n -f Run in foreground" \
3838 "\n -b Background if lease cannot be immediately negotiated" \
3839 "\n -S Log to syslog too" \
3840 "\n -n Exit with failure if lease cannot be immediately negotiated" \
3841 "\n -q Quit after obtaining lease" \
3842 "\n -R Release IP on quit" \
3843 "\n -v Display version" \
3844 )
3805 3845
3806#define udhcpd_trivial_usage \ 3846#define udhcpd_trivial_usage \
3807 "[-fS] [configfile]" \ 3847 "[-fS] [configfile]" \
@@ -4007,9 +4047,14 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
4007 " 31 46 1365 /etc/passwd\n" 4047 " 31 46 1365 /etc/passwd\n"
4008 4048
4009#define wget_trivial_usage \ 4049#define wget_trivial_usage \
4050 USE_GETOPT_LONG( \
4010 "[-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document file]\n" \ 4051 "[-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document file]\n" \
4011 " [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]\n" \ 4052 " [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]\n" \
4012 " [-U|--user-agent agent] url" 4053 " [-U|--user-agent agent] url" \
4054 ) \
4055 SKIP_GETOPT_LONG( \
4056 "[-csq] [-O file] [-Y on/off] [-P DIR] [-U agent] url" \
4057 )
4013#define wget_full_usage \ 4058#define wget_full_usage \
4014 "Retrieve files via HTTP or FTP" \ 4059 "Retrieve files via HTTP or FTP" \
4015 "\n\nOptions:\n" \ 4060 "\n\nOptions:\n" \