diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-13 01:08:48 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-13 01:08:48 +0200 |
commit | 6b6826f0b87b13c5e83786f045b90d703507464e (patch) | |
tree | dc40238c9843b020fddfa7de83e25892b166dbe4 /coreutils | |
parent | aece2c5f0fef9088b615016f3177b1abd3a373bb (diff) | |
download | busybox-w32-6b6826f0b87b13c5e83786f045b90d703507464e.tar.gz busybox-w32-6b6826f0b87b13c5e83786f045b90d703507464e.tar.bz2 busybox-w32-6b6826f0b87b13c5e83786f045b90d703507464e.zip |
*: --help tweaks
function old new delta
.rodata 103190 103189 -1
packed_usage 33590 33566 -24
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-25) Total: -25 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/env.c | 12 | ||||
-rw-r--r-- | coreutils/expr.c | 4 | ||||
-rw-r--r-- | coreutils/uudecode.c | 4 |
3 files changed, 11 insertions, 9 deletions
diff --git a/coreutils/env.c b/coreutils/env.c index c37c0c2df..4715bf73a 100644 --- a/coreutils/env.c +++ b/coreutils/env.c | |||
@@ -39,12 +39,14 @@ | |||
39 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/env.html */ | 39 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/env.html */ |
40 | 40 | ||
41 | //usage:#define env_trivial_usage | 41 | //usage:#define env_trivial_usage |
42 | //usage: "[-iu] [-] [name=value]... [PROG ARGS]" | 42 | //usage: "[-i] [-u NAME]... [-] [NAME=VALUE]... [PROG ARGS]" |
43 | // The "-" can occur only once (unlike, say, -i): it terminates option processing, | ||
44 | // so if it is followed by another "-" arg (or any option-looking arg), | ||
45 | // that arg will be taken as PROG (or even as NAME=VALUE, example: "-z=QWE"). | ||
43 | //usage:#define env_full_usage "\n\n" | 46 | //usage:#define env_full_usage "\n\n" |
44 | //usage: "Print the current environment or run PROG after setting up\n" | 47 | //usage: "Print current environment or run PROG after setting up environment\n" |
45 | //usage: "the specified environment\n" | 48 | //usage: "\n -, -i Start with empty environment" |
46 | //usage: "\n -, -i Start with an empty environment" | 49 | //usage: "\n -u NAME Remove variable from environment" |
47 | //usage: "\n -u Remove variable from the environment" | ||
48 | 50 | ||
49 | #include "libbb.h" | 51 | #include "libbb.h" |
50 | 52 | ||
diff --git a/coreutils/expr.c b/coreutils/expr.c index b247f08db..760b081f9 100644 --- a/coreutils/expr.c +++ b/coreutils/expr.c | |||
@@ -45,7 +45,7 @@ | |||
45 | //usage:#define expr_trivial_usage | 45 | //usage:#define expr_trivial_usage |
46 | //usage: "EXPRESSION" | 46 | //usage: "EXPRESSION" |
47 | //usage:#define expr_full_usage "\n\n" | 47 | //usage:#define expr_full_usage "\n\n" |
48 | //usage: "Print the value of EXPRESSION to stdout\n" | 48 | //usage: "Print the value of EXPRESSION\n" |
49 | //usage: "\n" | 49 | //usage: "\n" |
50 | //usage: "EXPRESSION may be:\n" | 50 | //usage: "EXPRESSION may be:\n" |
51 | //usage: " ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n" | 51 | //usage: " ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n" |
@@ -63,7 +63,7 @@ | |||
63 | //usage: " ARG1 % ARG2\n" | 63 | //usage: " ARG1 % ARG2\n" |
64 | //usage: " STRING : REGEXP Anchored pattern match of REGEXP in STRING\n" | 64 | //usage: " STRING : REGEXP Anchored pattern match of REGEXP in STRING\n" |
65 | //usage: " match STRING REGEXP Same as STRING : REGEXP\n" | 65 | //usage: " match STRING REGEXP Same as STRING : REGEXP\n" |
66 | //usage: " substr STRING POS LENGTH Substring of STRING, POS counted from 1\n" | 66 | //usage: " substr STRING POS LEN Substring of STRING, POS counts from 1\n" |
67 | //usage: " index STRING CHARS Index in STRING where any CHARS is found, or 0\n" | 67 | //usage: " index STRING CHARS Index in STRING where any CHARS is found, or 0\n" |
68 | //usage: " length STRING Length of STRING\n" | 68 | //usage: " length STRING Length of STRING\n" |
69 | //usage: " quote TOKEN Interpret TOKEN as a string, even if\n" | 69 | //usage: " quote TOKEN Interpret TOKEN as a string, even if\n" |
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index 02b037276..bd7766ef7 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c | |||
@@ -183,7 +183,7 @@ int uudecode_main(int argc UNUSED_PARAM, char **argv) | |||
183 | //usage:#define base32_trivial_usage | 183 | //usage:#define base32_trivial_usage |
184 | //usage: "[-d] [-w COL] [FILE]" | 184 | //usage: "[-d] [-w COL] [FILE]" |
185 | //usage:#define base32_full_usage "\n\n" | 185 | //usage:#define base32_full_usage "\n\n" |
186 | //usage: "Base32 encode or decode FILE to standard output" | 186 | //usage: "Base32 encode or decode FILE to standard output\n" |
187 | //usage: "\n -d Decode data" | 187 | //usage: "\n -d Decode data" |
188 | //usage: "\n -w COL Wrap lines at COL (default 76, 0 disables)" | 188 | //usage: "\n -w COL Wrap lines at COL (default 76, 0 disables)" |
189 | ////usage: "\n -i When decoding, ignore non-alphabet characters" | 189 | ////usage: "\n -i When decoding, ignore non-alphabet characters" |
@@ -191,7 +191,7 @@ int uudecode_main(int argc UNUSED_PARAM, char **argv) | |||
191 | //usage:#define base64_trivial_usage | 191 | //usage:#define base64_trivial_usage |
192 | //usage: "[-d] [-w COL] [FILE]" | 192 | //usage: "[-d] [-w COL] [FILE]" |
193 | //usage:#define base64_full_usage "\n\n" | 193 | //usage:#define base64_full_usage "\n\n" |
194 | //usage: "Base64 encode or decode FILE to standard output" | 194 | //usage: "Base64 encode or decode FILE to standard output\n" |
195 | //usage: "\n -d Decode data" | 195 | //usage: "\n -d Decode data" |
196 | //usage: "\n -w COL Wrap lines at COL (default 76, 0 disables)" | 196 | //usage: "\n -w COL Wrap lines at COL (default 76, 0 disables)" |
197 | ////usage: "\n -i When decoding, ignore non-alphabet characters" | 197 | ////usage: "\n -i When decoding, ignore non-alphabet characters" |