diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-18 04:12:51 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-18 04:12:51 +0100 |
commit | a2f18d950a1a94e22fec78ee2d57f5cd3542551a (patch) | |
tree | 0e2540425675187e037e09cd0bf59c1740e91b49 /networking | |
parent | 15733cb48e570716cad6ece2d752507ecd767131 (diff) | |
download | busybox-w32-a2f18d950a1a94e22fec78ee2d57f5cd3542551a.tar.gz busybox-w32-a2f18d950a1a94e22fec78ee2d57f5cd3542551a.tar.bz2 busybox-w32-a2f18d950a1a94e22fec78ee2d57f5cd3542551a.zip |
help text tweaks
function old new delta
packed_usage 33570 33502 -68
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ifupdown.c | 14 | ||||
-rw-r--r-- | networking/ntpd.c | 2 | ||||
-rw-r--r-- | networking/tunctl.c | 16 | ||||
-rw-r--r-- | networking/wget.c | 13 |
4 files changed, 20 insertions, 25 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index fedf05aaf..737113dd4 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -113,30 +113,30 @@ | |||
113 | //kbuild:lib-$(CONFIG_IFDOWN) += ifupdown.o | 113 | //kbuild:lib-$(CONFIG_IFDOWN) += ifupdown.o |
114 | 114 | ||
115 | //usage:#define ifup_trivial_usage | 115 | //usage:#define ifup_trivial_usage |
116 | //usage: "[-an"IF_FEATURE_IFUPDOWN_MAPPING("m")"vf] [-i FILE] IFACE..." | 116 | //usage: "[-n"IF_FEATURE_IFUPDOWN_MAPPING("m")"vf] [-i FILE] -a | IFACE..." |
117 | //usage:#define ifup_full_usage "\n\n" | 117 | //usage:#define ifup_full_usage "\n\n" |
118 | //usage: " -a Configure all interfaces" | 118 | //usage: " -a Configure all interfaces" |
119 | //usage: "\n -i FILE Use FILE instead of /etc/network/interfaces" | 119 | //usage: "\n -i FILE Use FILE instead of /etc/network/interfaces" |
120 | //usage: "\n -n Print out what would happen, but don't do it" | 120 | //usage: "\n -n Dry run" |
121 | //usage: IF_FEATURE_IFUPDOWN_MAPPING( | 121 | //usage: IF_FEATURE_IFUPDOWN_MAPPING( |
122 | //usage: "\n (note: doesn't disable mappings)" | 122 | //usage: "\n (note: doesn't disable mappings)" |
123 | //usage: "\n -m Don't run any mappings" | 123 | //usage: "\n -m Don't run any mappings" |
124 | //usage: ) | 124 | //usage: ) |
125 | //usage: "\n -v Print out what would happen before doing it" | 125 | //usage: "\n -v Print out what would happen before doing it" |
126 | //usage: "\n -f Force configuration" | 126 | //usage: "\n -f Force" |
127 | //usage: | 127 | //usage: |
128 | //usage:#define ifdown_trivial_usage | 128 | //usage:#define ifdown_trivial_usage |
129 | //usage: "[-an"IF_FEATURE_IFUPDOWN_MAPPING("m")"vf] [-i FILE] IFACE..." | 129 | //usage: "[-n"IF_FEATURE_IFUPDOWN_MAPPING("m")"vf] [-i FILE] -a | IFACE..." |
130 | //usage:#define ifdown_full_usage "\n\n" | 130 | //usage:#define ifdown_full_usage "\n\n" |
131 | //usage: " -a Deconfigure all interfaces" | 131 | //usage: " -a Deconfigure all interfaces" |
132 | //usage: "\n -i FILE Use FILE for interface definitions" | 132 | //usage: "\n -i FILE Use FILE instead of /etc/network/interfaces" |
133 | //usage: "\n -n Print out what would happen, but don't do it" | 133 | //usage: "\n -n Dry run" |
134 | //usage: IF_FEATURE_IFUPDOWN_MAPPING( | 134 | //usage: IF_FEATURE_IFUPDOWN_MAPPING( |
135 | //usage: "\n (note: doesn't disable mappings)" | 135 | //usage: "\n (note: doesn't disable mappings)" |
136 | //usage: "\n -m Don't run any mappings" | 136 | //usage: "\n -m Don't run any mappings" |
137 | //usage: ) | 137 | //usage: ) |
138 | //usage: "\n -v Print out what would happen before doing it" | 138 | //usage: "\n -v Print out what would happen before doing it" |
139 | //usage: "\n -f Force deconfiguration" | 139 | //usage: "\n -f Force" |
140 | 140 | ||
141 | #include <net/if.h> | 141 | #include <net/if.h> |
142 | #include "libbb.h" | 142 | #include "libbb.h" |
diff --git a/networking/ntpd.c b/networking/ntpd.c index 06f6017d0..5a540a391 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -77,7 +77,7 @@ | |||
77 | //usage: IF_FEATURE_NTP_AUTH(" [-k KEYFILE] [-p [keyno:N:]PEER]...") | 77 | //usage: IF_FEATURE_NTP_AUTH(" [-k KEYFILE] [-p [keyno:N:]PEER]...") |
78 | //usage:#define ntpd_full_usage "\n\n" | 78 | //usage:#define ntpd_full_usage "\n\n" |
79 | //usage: "NTP client/server\n" | 79 | //usage: "NTP client/server\n" |
80 | //usage: "\n -d Verbose (may be repeated)" | 80 | //usage: "\n -d[d] Verbose" |
81 | //usage: "\n -n Do not daemonize" | 81 | //usage: "\n -n Do not daemonize" |
82 | //usage: "\n -q Quit after clock is set" | 82 | //usage: "\n -q Quit after clock is set" |
83 | //usage: "\n -N Run at high priority" | 83 | //usage: "\n -N Run at high priority" |
diff --git a/networking/tunctl.c b/networking/tunctl.c index 0f010e196..97e6917aa 100644 --- a/networking/tunctl.c +++ b/networking/tunctl.c | |||
@@ -28,16 +28,16 @@ | |||
28 | //kbuild:lib-$(CONFIG_TUNCTL) += tunctl.o | 28 | //kbuild:lib-$(CONFIG_TUNCTL) += tunctl.o |
29 | 29 | ||
30 | //usage:#define tunctl_trivial_usage | 30 | //usage:#define tunctl_trivial_usage |
31 | //usage: "[-f device] ([-t name] | -d name)" IF_FEATURE_TUNCTL_UG(" [-u owner] [-g group] [-b]") | 31 | //usage: "[-f DEVICE] [-t NAME | -d NAME]" IF_FEATURE_TUNCTL_UG(" [-u USER] [-g GRP] [-b]") |
32 | //usage:#define tunctl_full_usage "\n\n" | 32 | //usage:#define tunctl_full_usage "\n\n" |
33 | //usage: "Create or delete tun interfaces\n" | 33 | //usage: "Create or delete TUN/TAP interfaces\n" |
34 | //usage: "\n -f name tun device (/dev/net/tun)" | 34 | //usage: "\n -f DEV TUN device (default /dev/net/tun)" |
35 | //usage: "\n -t name Create iface 'name'" | 35 | //usage: "\n -t NAME Create iface (default: tapN)" |
36 | //usage: "\n -d name Delete iface 'name'" | 36 | //usage: "\n -d NAME Delete iface" |
37 | //usage: IF_FEATURE_TUNCTL_UG( | 37 | //usage: IF_FEATURE_TUNCTL_UG( |
38 | //usage: "\n -u owner Set iface owner" | 38 | //usage: "\n -u USER Set iface owner" |
39 | //usage: "\n -g group Set iface group" | 39 | //usage: "\n -g GRP Set iface group" |
40 | //usage: "\n -b Brief output" | 40 | //usage: "\n -b Brief output" |
41 | //usage: ) | 41 | //usage: ) |
42 | //usage: | 42 | //usage: |
43 | //usage:#define tunctl_example_usage | 43 | //usage:#define tunctl_example_usage |
diff --git a/networking/wget.c b/networking/wget.c index ff0df4ca0..e660c279c 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -128,19 +128,14 @@ | |||
128 | 128 | ||
129 | //usage:#define wget_trivial_usage | 129 | //usage:#define wget_trivial_usage |
130 | //usage: IF_FEATURE_WGET_LONG_OPTIONS( | 130 | //usage: IF_FEATURE_WGET_LONG_OPTIONS( |
131 | //usage: "[-c|--continue] [--spider] [-q|--quiet] [-O|--output-document FILE]\n" | 131 | //usage: "[-cqS] [--spider] [-O FILE] [-o LOGFILE] [--header 'HEADER: VALUE'] [-Y on/off]\n" |
132 | //usage: " [-o|--output-file FILE] [--header 'header: value'] [-Y|--proxy on/off]\n" | ||
133 | //usage: IF_FEATURE_WGET_OPENSSL( | ||
134 | //usage: " [--no-check-certificate]\n" | ||
135 | //usage: ) | ||
136 | /* Since we ignore these opts, we don't show them in --help */ | 132 | /* Since we ignore these opts, we don't show them in --help */ |
137 | /* //usage: " [--no-cache] [--passive-ftp] [-t TRIES]" */ | 133 | /* //usage: " [--no-cache] [--passive-ftp] [-t TRIES]" */ |
138 | /* //usage: " [-nv] [-nc] [-nH] [-np]" */ | 134 | /* //usage: " [-nv] [-nc] [-nH] [-np]" */ |
139 | //usage: " [-P DIR] [-S|--server-response] [-U|--user-agent AGENT]" IF_FEATURE_WGET_TIMEOUT(" [-T SEC]") " URL..." | 135 | //usage: " "IF_FEATURE_WGET_OPENSSL("[--no-check-certificate] ")"[-P DIR] [-U AGENT]"IF_FEATURE_WGET_TIMEOUT(" [-T SEC]")" URL..." |
140 | //usage: ) | 136 | //usage: ) |
141 | //usage: IF_NOT_FEATURE_WGET_LONG_OPTIONS( | 137 | //usage: IF_NOT_FEATURE_WGET_LONG_OPTIONS( |
142 | //usage: "[-cq] [-O FILE] [-o FILE] [-Y on/off] [-P DIR] [-S] [-U AGENT]" | 138 | //usage: "[-cqS] [-O FILE] [-o LOGFILE] [-Y on/off] [-P DIR] [-U AGENT]"IF_FEATURE_WGET_TIMEOUT(" [-T SEC]")" URL..." |
143 | //usage: IF_FEATURE_WGET_TIMEOUT(" [-T SEC]") " URL..." | ||
144 | //usage: ) | 139 | //usage: ) |
145 | //usage:#define wget_full_usage "\n\n" | 140 | //usage:#define wget_full_usage "\n\n" |
146 | //usage: "Retrieve files via HTTP or FTP\n" | 141 | //usage: "Retrieve files via HTTP or FTP\n" |
@@ -158,7 +153,7 @@ | |||
158 | //usage: "\n -T SEC Network read timeout is SEC seconds" | 153 | //usage: "\n -T SEC Network read timeout is SEC seconds" |
159 | //usage: ) | 154 | //usage: ) |
160 | //usage: "\n -O FILE Save to FILE ('-' for stdout)" | 155 | //usage: "\n -O FILE Save to FILE ('-' for stdout)" |
161 | //usage: "\n -o FILE Log messages to FILE" | 156 | //usage: "\n -o LOGFILE Log messages to FILE" |
162 | //usage: "\n -U STR Use STR for User-Agent header" | 157 | //usage: "\n -U STR Use STR for User-Agent header" |
163 | //usage: "\n -Y on/off Use proxy" | 158 | //usage: "\n -Y on/off Use proxy" |
164 | 159 | ||