diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-13 03:12:09 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-13 03:12:09 +0200 |
commit | 1849285a2098b503b829038f00f25abc52dbea6b (patch) | |
tree | cd39fc71e17c465b81174b83d64cd05eee2edad3 | |
parent | 6b6826f0b87b13c5e83786f045b90d703507464e (diff) | |
download | busybox-w32-1849285a2098b503b829038f00f25abc52dbea6b.tar.gz busybox-w32-1849285a2098b503b829038f00f25abc52dbea6b.tar.bz2 busybox-w32-1849285a2098b503b829038f00f25abc52dbea6b.zip |
*: more --help tweaks, mostly expanding ts --help
function old new delta
packed_usage 33554 33596 +42
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | archival/tar.c | 2 | ||||
-rw-r--r-- | coreutils/touch.c | 2 | ||||
-rw-r--r-- | coreutils/tty.c | 2 | ||||
-rw-r--r-- | coreutils/uname.c | 4 | ||||
-rw-r--r-- | coreutils/yes.c | 2 | ||||
-rw-r--r-- | miscutils/ts.c | 5 | ||||
-rw-r--r-- | procps/top.c | 4 | ||||
-rw-r--r-- | runit/svlogd.c | 12 |
8 files changed, 18 insertions, 15 deletions
diff --git a/archival/tar.c b/archival/tar.c index 9d4c7b662..4a540b77a 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -775,7 +775,7 @@ static llist_t *append_file_list_to_list(llist_t *list) | |||
775 | //usage: IF_FEATURE_TAR_NOPRESERVE_TIME("m") | 775 | //usage: IF_FEATURE_TAR_NOPRESERVE_TIME("m") |
776 | //usage: "vokO] " | 776 | //usage: "vokO] " |
777 | //usage: "[-f TARFILE] [-C DIR] " | 777 | //usage: "[-f TARFILE] [-C DIR] " |
778 | //usage: IF_FEATURE_TAR_FROM("[-T FILE] [-X FILE] "IF_FEATURE_TAR_LONG_OPTIONS("[OPTION]... ")) | 778 | //usage: IF_FEATURE_TAR_FROM("[-T FILE] [-X FILE] "IF_FEATURE_TAR_LONG_OPTIONS("[LONGOPT]... ")) |
779 | //usage: "[FILE]..." | 779 | //usage: "[FILE]..." |
780 | //usage:#define tar_full_usage "\n\n" | 780 | //usage:#define tar_full_usage "\n\n" |
781 | //usage: IF_FEATURE_TAR_CREATE("Create, extract, ") | 781 | //usage: IF_FEATURE_TAR_CREATE("Create, extract, ") |
diff --git a/coreutils/touch.c b/coreutils/touch.c index 2b225dd16..ec12eb7cf 100644 --- a/coreutils/touch.c +++ b/coreutils/touch.c | |||
@@ -31,7 +31,7 @@ | |||
31 | //kbuild:lib-$(CONFIG_TOUCH) += touch.o | 31 | //kbuild:lib-$(CONFIG_TOUCH) += touch.o |
32 | 32 | ||
33 | //usage:#define touch_trivial_usage | 33 | //usage:#define touch_trivial_usage |
34 | //usage: "[-c" IF_FEATURE_TOUCH_SUSV3("am") "]" | 34 | //usage: "[-ch" IF_FEATURE_TOUCH_SUSV3("am") "]" |
35 | //usage: IF_FEATURE_TOUCH_SUSV3(" [-d DATE] [-t DATE] [-r FILE]") | 35 | //usage: IF_FEATURE_TOUCH_SUSV3(" [-d DATE] [-t DATE] [-r FILE]") |
36 | //usage: " FILE..." | 36 | //usage: " FILE..." |
37 | //usage:#define touch_full_usage "\n\n" | 37 | //usage:#define touch_full_usage "\n\n" |
diff --git a/coreutils/tty.c b/coreutils/tty.c index ff6f2bb3b..e448c27ec 100644 --- a/coreutils/tty.c +++ b/coreutils/tty.c | |||
@@ -21,7 +21,7 @@ | |||
21 | /* http://www.opengroup.org/onlinepubs/9699919799/utilities/tty.html */ | 21 | /* http://www.opengroup.org/onlinepubs/9699919799/utilities/tty.html */ |
22 | 22 | ||
23 | //usage:#define tty_trivial_usage | 23 | //usage:#define tty_trivial_usage |
24 | //usage: "" | 24 | //usage: "" IF_INCLUDE_SUSv2("[-s]") |
25 | //usage:#define tty_full_usage "\n\n" | 25 | //usage:#define tty_full_usage "\n\n" |
26 | //usage: "Print file name of stdin's terminal" | 26 | //usage: "Print file name of stdin's terminal" |
27 | //usage: IF_INCLUDE_SUSv2( "\n" | 27 | //usage: IF_INCLUDE_SUSv2( "\n" |
diff --git a/coreutils/uname.c b/coreutils/uname.c index 2a1602b4c..da785ab4c 100644 --- a/coreutils/uname.c +++ b/coreutils/uname.c | |||
@@ -79,13 +79,13 @@ | |||
79 | //usage:#define uname_full_usage "\n\n" | 79 | //usage:#define uname_full_usage "\n\n" |
80 | //usage: "Print system information\n" | 80 | //usage: "Print system information\n" |
81 | //usage: "\n -a Print all" | 81 | //usage: "\n -a Print all" |
82 | //usage: "\n -m The machine (hardware) type" | 82 | //usage: "\n -m Machine (hardware) type" |
83 | //usage: "\n -n Hostname" | 83 | //usage: "\n -n Hostname" |
84 | //usage: "\n -r Kernel release" | 84 | //usage: "\n -r Kernel release" |
85 | //usage: "\n -s Kernel name (default)" | 85 | //usage: "\n -s Kernel name (default)" |
86 | //usage: "\n -p Processor type" | 86 | //usage: "\n -p Processor type" |
87 | //usage: "\n -v Kernel version" | 87 | //usage: "\n -v Kernel version" |
88 | //usage: "\n -i The hardware platform" | 88 | //usage: "\n -i Hardware platform" |
89 | //usage: "\n -o OS name" | 89 | //usage: "\n -o OS name" |
90 | //usage: | 90 | //usage: |
91 | //usage:#define uname_example_usage | 91 | //usage:#define uname_example_usage |
diff --git a/coreutils/yes.c b/coreutils/yes.c index 0ad25926f..161db82c0 100644 --- a/coreutils/yes.c +++ b/coreutils/yes.c | |||
@@ -27,7 +27,7 @@ | |||
27 | //usage:#define yes_trivial_usage | 27 | //usage:#define yes_trivial_usage |
28 | //usage: "[STRING]" | 28 | //usage: "[STRING]" |
29 | //usage:#define yes_full_usage "\n\n" | 29 | //usage:#define yes_full_usage "\n\n" |
30 | //usage: "Repeatedly output a line with STRING, or 'y'" | 30 | //usage: "Repeatedly print a line with STRING, or 'y'" |
31 | 31 | ||
32 | #include "libbb.h" | 32 | #include "libbb.h" |
33 | 33 | ||
diff --git a/miscutils/ts.c b/miscutils/ts.c index 6e5d77bda..c7e477cc5 100644 --- a/miscutils/ts.c +++ b/miscutils/ts.c | |||
@@ -13,7 +13,10 @@ | |||
13 | 13 | ||
14 | //usage:#define ts_trivial_usage | 14 | //usage:#define ts_trivial_usage |
15 | //usage: "[-is] [STRFTIME]" | 15 | //usage: "[-is] [STRFTIME]" |
16 | //usage:#define ts_full_usage "" | 16 | //usage:#define ts_full_usage "\n\n" |
17 | //usage: "Pipe stdin to stdout, add timestamp to each line\n" | ||
18 | //usage: "\n -s Time since start" | ||
19 | //usage: "\n -i Time since previous line" | ||
17 | 20 | ||
18 | #include "libbb.h" | 21 | #include "libbb.h" |
19 | #include "common_bufsiz.h" | 22 | #include "common_bufsiz.h" |
diff --git a/procps/top.c b/procps/top.c index cadc4ecec..4cd545c69 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -1052,9 +1052,9 @@ static unsigned handle_input(unsigned scan_mask, duration_t interval) | |||
1052 | //usage: "[-b"IF_FEATURE_TOPMEM("m")IF_FEATURE_SHOW_THREADS("H")"]" | 1052 | //usage: "[-b"IF_FEATURE_TOPMEM("m")IF_FEATURE_SHOW_THREADS("H")"]" |
1053 | //usage: " [-n COUNT] [-d SECONDS]" | 1053 | //usage: " [-n COUNT] [-d SECONDS]" |
1054 | //usage:#define top_full_usage "\n\n" | 1054 | //usage:#define top_full_usage "\n\n" |
1055 | //usage: "Provide a view of process activity in real time." | 1055 | //usage: "Show a view of process activity in real time." |
1056 | //usage: "\n""Read the status of all processes from /proc each SECONDS" | 1056 | //usage: "\n""Read the status of all processes from /proc each SECONDS" |
1057 | //usage: "\n""and display a screenful of them." | 1057 | //usage: "\n""and show a screenful of them." |
1058 | //usage: "\n" | 1058 | //usage: "\n" |
1059 | //usage: IF_FEATURE_TOP_INTERACTIVE( | 1059 | //usage: IF_FEATURE_TOP_INTERACTIVE( |
1060 | //usage: "Keys:" | 1060 | //usage: "Keys:" |
diff --git a/runit/svlogd.c b/runit/svlogd.c index 02c305696..f7576f0fa 100644 --- a/runit/svlogd.c +++ b/runit/svlogd.c | |||
@@ -140,12 +140,12 @@ log message, you can use a pattern like this instead | |||
140 | //usage:#define svlogd_full_usage "\n\n" | 140 | //usage:#define svlogd_full_usage "\n\n" |
141 | //usage: "Read log data from stdin and write to rotated log files in DIRs" | 141 | //usage: "Read log data from stdin and write to rotated log files in DIRs" |
142 | //usage: "\n" | 142 | //usage: "\n" |
143 | //usage: "\n""-r C Replace non-printable characters with C" | 143 | //usage: "\n"" -r C Replace non-printable characters with C" |
144 | //usage: "\n""-R CHARS Also replace CHARS with C (default _)" | 144 | //usage: "\n"" -R CHARS Also replace CHARS with C (default _)" |
145 | //usage: "\n""-t Timestamp with @tai64n" | 145 | //usage: "\n"" -t Timestamp with @tai64n" |
146 | //usage: "\n""-tt Timestamp with yyyy-mm-dd_hh:mm:ss.sssss" | 146 | //usage: "\n"" -tt Timestamp with yyyy-mm-dd_hh:mm:ss.sssss" |
147 | //usage: "\n""-ttt Timestamp with yyyy-mm-ddThh:mm:ss.sssss" | 147 | //usage: "\n"" -ttt Timestamp with yyyy-mm-ddThh:mm:ss.sssss" |
148 | //usage: "\n""-v Verbose" | 148 | //usage: "\n"" -v Verbose" |
149 | //usage: "\n" | 149 | //usage: "\n" |
150 | //usage: "\n""DIR/config file modifies behavior:" | 150 | //usage: "\n""DIR/config file modifies behavior:" |
151 | //usage: "\n""sSIZE - when to rotate logs (default 1000000, 0 disables)" | 151 | //usage: "\n""sSIZE - when to rotate logs (default 1000000, 0 disables)" |