diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-14 20:47:20 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-14 20:47:20 +0200 |
commit | e2b9215868a3d72691e5bc0f887354254606447b (patch) | |
tree | d800e563fcd78971be6cd8630fba1d61677975fb | |
parent | 643b308029ac42f466fa17e4ff400e47003205d9 (diff) | |
download | busybox-w32-e2b9215868a3d72691e5bc0f887354254606447b.tar.gz busybox-w32-e2b9215868a3d72691e5bc0f887354254606447b.tar.bz2 busybox-w32-e2b9215868a3d72691e5bc0f887354254606447b.zip |
*: --help tweaks
function old new delta
packed_usage 33589 33552 -37
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | archival/bbunzip.c | 10 | ||||
-rw-r--r-- | archival/bzip2.c | 4 | ||||
-rw-r--r-- | archival/gzip.c | 4 | ||||
-rw-r--r-- | archival/lzop.c | 1 | ||||
-rw-r--r-- | coreutils/chgrp.c | 8 | ||||
-rw-r--r-- | coreutils/chmod.c | 7 | ||||
-rw-r--r-- | coreutils/chown.c | 10 | ||||
-rw-r--r-- | coreutils/cut.c | 1 | ||||
-rw-r--r-- | coreutils/echo.c | 6 | ||||
-rw-r--r-- | coreutils/id.c | 2 | ||||
-rw-r--r-- | e2fsprogs/chattr.c | 23 | ||||
-rw-r--r-- | editors/cmp.c | 2 | ||||
-rw-r--r-- | findutils/grep.c | 4 | ||||
-rw-r--r-- | miscutils/flashcp.c | 4 | ||||
-rw-r--r-- | procps/free.c | 2 | ||||
-rw-r--r-- | procps/kill.c | 2 | ||||
-rw-r--r-- | shell/ash.c | 2 | ||||
-rw-r--r-- | shell/hush.c | 2 | ||||
-rw-r--r-- | sysklogd/logger.c | 2 | ||||
-rw-r--r-- | util-linux/dmesg.c | 2 | ||||
-rw-r--r-- | util-linux/ionice.c | 3 |
21 files changed, 61 insertions, 40 deletions
diff --git a/archival/bbunzip.c b/archival/bbunzip.c index d639f307e..0ac059c19 100644 --- a/archival/bbunzip.c +++ b/archival/bbunzip.c | |||
@@ -284,7 +284,7 @@ int uncompress_main(int argc UNUSED_PARAM, char **argv) | |||
284 | //usage: "\n -c Write to stdout" | 284 | //usage: "\n -c Write to stdout" |
285 | //usage: "\n -f Force" | 285 | //usage: "\n -f Force" |
286 | //usage: "\n -k Keep input files" | 286 | //usage: "\n -k Keep input files" |
287 | //usage: "\n -t Test file integrity" | 287 | //usage: "\n -t Test integrity" |
288 | //usage: | 288 | //usage: |
289 | //usage:#define gunzip_example_usage | 289 | //usage:#define gunzip_example_usage |
290 | //usage: "$ ls -la /tmp/BusyBox*\n" | 290 | //usage: "$ ls -la /tmp/BusyBox*\n" |
@@ -407,6 +407,8 @@ int gunzip_main(int argc UNUSED_PARAM, char **argv) | |||
407 | //usage: "\n -c Write to stdout" | 407 | //usage: "\n -c Write to stdout" |
408 | //usage: "\n -f Force" | 408 | //usage: "\n -f Force" |
409 | //usage: "\n -k Keep input files" | 409 | //usage: "\n -k Keep input files" |
410 | //usage: "\n -t Test integrity" | ||
411 | //usage: | ||
410 | //usage:#define bzcat_trivial_usage | 412 | //usage:#define bzcat_trivial_usage |
411 | //usage: "[FILE]..." | 413 | //usage: "[FILE]..." |
412 | //usage:#define bzcat_full_usage "\n\n" | 414 | //usage:#define bzcat_full_usage "\n\n" |
@@ -465,6 +467,7 @@ int bunzip2_main(int argc UNUSED_PARAM, char **argv) | |||
465 | //usage: "\n -c Write to stdout" | 467 | //usage: "\n -c Write to stdout" |
466 | //usage: "\n -f Force" | 468 | //usage: "\n -f Force" |
467 | //usage: "\n -k Keep input files" | 469 | //usage: "\n -k Keep input files" |
470 | //usage: "\n -t Test integrity" | ||
468 | //usage: | 471 | //usage: |
469 | //usage:#define lzma_trivial_usage | 472 | //usage:#define lzma_trivial_usage |
470 | //usage: "-d [-cfk] [FILE]..." | 473 | //usage: "-d [-cfk] [FILE]..." |
@@ -474,6 +477,7 @@ int bunzip2_main(int argc UNUSED_PARAM, char **argv) | |||
474 | //usage: "\n -c Write to stdout" | 477 | //usage: "\n -c Write to stdout" |
475 | //usage: "\n -f Force" | 478 | //usage: "\n -f Force" |
476 | //usage: "\n -k Keep input files" | 479 | //usage: "\n -k Keep input files" |
480 | //usage: "\n -t Test integrity" | ||
477 | //usage: | 481 | //usage: |
478 | //usage:#define lzcat_trivial_usage | 482 | //usage:#define lzcat_trivial_usage |
479 | //usage: "[FILE]..." | 483 | //usage: "[FILE]..." |
@@ -536,7 +540,7 @@ int unlzma_main(int argc UNUSED_PARAM, char **argv) | |||
536 | //usage: "\n -c Write to stdout" | 540 | //usage: "\n -c Write to stdout" |
537 | //usage: "\n -f Force" | 541 | //usage: "\n -f Force" |
538 | //usage: "\n -k Keep input files" | 542 | //usage: "\n -k Keep input files" |
539 | //usage: "\n -t Test file integrity" | 543 | //usage: "\n -t Test integrity" |
540 | //usage: | 544 | //usage: |
541 | //usage:#define xz_trivial_usage | 545 | //usage:#define xz_trivial_usage |
542 | //usage: "-d [-cfk] [FILE]..." | 546 | //usage: "-d [-cfk] [FILE]..." |
@@ -546,7 +550,7 @@ int unlzma_main(int argc UNUSED_PARAM, char **argv) | |||
546 | //usage: "\n -c Write to stdout" | 550 | //usage: "\n -c Write to stdout" |
547 | //usage: "\n -f Force" | 551 | //usage: "\n -f Force" |
548 | //usage: "\n -k Keep input files" | 552 | //usage: "\n -k Keep input files" |
549 | //usage: "\n -t Test file integrity" | 553 | //usage: "\n -t Test integrity" |
550 | //usage: | 554 | //usage: |
551 | //usage:#define xzcat_trivial_usage | 555 | //usage:#define xzcat_trivial_usage |
552 | //usage: "[FILE]..." | 556 | //usage: "[FILE]..." |
diff --git a/archival/bzip2.c b/archival/bzip2.c index ac5db0880..bce13cf93 100644 --- a/archival/bzip2.c +++ b/archival/bzip2.c | |||
@@ -56,11 +56,13 @@ | |||
56 | //usage: "\n -1..9 Compression level" | 56 | //usage: "\n -1..9 Compression level" |
57 | //usage: IF_FEATURE_BZIP2_DECOMPRESS( | 57 | //usage: IF_FEATURE_BZIP2_DECOMPRESS( |
58 | //usage: "\n -d Decompress" | 58 | //usage: "\n -d Decompress" |
59 | //usage: "\n -t Test file integrity" | ||
60 | //usage: ) | 59 | //usage: ) |
61 | //usage: "\n -c Write to stdout" | 60 | //usage: "\n -c Write to stdout" |
62 | //usage: "\n -f Force" | 61 | //usage: "\n -f Force" |
63 | //usage: "\n -k Keep input files" | 62 | //usage: "\n -k Keep input files" |
63 | //usage: IF_FEATURE_BZIP2_DECOMPRESS( | ||
64 | //usage: "\n -t Test integrity" | ||
65 | //usage: ) | ||
64 | 66 | ||
65 | #include "libbb.h" | 67 | #include "libbb.h" |
66 | #include "bb_archive.h" | 68 | #include "bb_archive.h" |
diff --git a/archival/gzip.c b/archival/gzip.c index d9c730f13..91bd4d09d 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -77,11 +77,13 @@ aa: 85.1% -- replaced with aa.gz | |||
77 | //usage: ) | 77 | //usage: ) |
78 | //usage: IF_FEATURE_GZIP_DECOMPRESS( | 78 | //usage: IF_FEATURE_GZIP_DECOMPRESS( |
79 | //usage: "\n -d Decompress" | 79 | //usage: "\n -d Decompress" |
80 | //usage: "\n -t Test file integrity" | ||
81 | //usage: ) | 80 | //usage: ) |
82 | //usage: "\n -c Write to stdout" | 81 | //usage: "\n -c Write to stdout" |
83 | //usage: "\n -f Force" | 82 | //usage: "\n -f Force" |
84 | //usage: "\n -k Keep input files" | 83 | //usage: "\n -k Keep input files" |
84 | //usage: IF_FEATURE_GZIP_DECOMPRESS( | ||
85 | //usage: "\n -t Test integrity" | ||
86 | //usage: ) | ||
85 | //usage: | 87 | //usage: |
86 | //usage:#define gzip_example_usage | 88 | //usage:#define gzip_example_usage |
87 | //usage: "$ ls -la /tmp/busybox*\n" | 89 | //usage: "$ ls -la /tmp/busybox*\n" |
diff --git a/archival/lzop.c b/archival/lzop.c index bdd21598c..74df8ff03 100644 --- a/archival/lzop.c +++ b/archival/lzop.c | |||
@@ -86,6 +86,7 @@ | |||
86 | //usage: "\n -f Force" | 86 | //usage: "\n -f Force" |
87 | //usage: "\n -U Delete input files" | 87 | //usage: "\n -U Delete input files" |
88 | ///////: "\n -k Keep input files" (default, so why bother documenting?) | 88 | ///////: "\n -k Keep input files" (default, so why bother documenting?) |
89 | //usage: "\n -t Test integrity" | ||
89 | //usage: "\n -v Verbose" | 90 | //usage: "\n -v Verbose" |
90 | //usage: "\n -F Don't verify checksum" | 91 | //usage: "\n -F Don't verify checksum" |
91 | 92 | ||
diff --git a/coreutils/chgrp.c b/coreutils/chgrp.c index 0c2060981..e6ac316e5 100644 --- a/coreutils/chgrp.c +++ b/coreutils/chgrp.c | |||
@@ -23,13 +23,17 @@ | |||
23 | //usage:#define chgrp_trivial_usage | 23 | //usage:#define chgrp_trivial_usage |
24 | //usage: "[-Rh"IF_DESKTOP("LHPcvf")"]... GROUP FILE..." | 24 | //usage: "[-Rh"IF_DESKTOP("LHPcvf")"]... GROUP FILE..." |
25 | //usage:#define chgrp_full_usage "\n\n" | 25 | //usage:#define chgrp_full_usage "\n\n" |
26 | //usage: "Change the group membership of FILEs to GROUP\n" | 26 | //usage: "Change the group membership of FILEs to GROUP" |
27 | //usage: "\n -R Recurse" | 27 | //usage: "\n" |
28 | //usage: "\n -h Affect symlinks instead of symlink targets" | 28 | //usage: "\n -h Affect symlinks instead of symlink targets" |
29 | //usage: IF_DESKTOP( | 29 | //usage: IF_DESKTOP( |
30 | //usage: "\n -L Traverse all symlinks to directories" | 30 | //usage: "\n -L Traverse all symlinks to directories" |
31 | //usage: "\n -H Traverse symlinks on command line only" | 31 | //usage: "\n -H Traverse symlinks on command line only" |
32 | //usage: "\n -P Don't traverse symlinks (default)" | 32 | //usage: "\n -P Don't traverse symlinks (default)" |
33 | //usage: ) | ||
34 | //next 4 options are the same for chmod/chown/chgrp: | ||
35 | //usage: "\n -R Recurse" | ||
36 | //usage: IF_DESKTOP( | ||
33 | //usage: "\n -c List changed files" | 37 | //usage: "\n -c List changed files" |
34 | //usage: "\n -v Verbose" | 38 | //usage: "\n -v Verbose" |
35 | //usage: "\n -f Hide errors" | 39 | //usage: "\n -f Hide errors" |
diff --git a/coreutils/chmod.c b/coreutils/chmod.c index d2988c490..e260adab2 100644 --- a/coreutils/chmod.c +++ b/coreutils/chmod.c | |||
@@ -26,12 +26,13 @@ | |||
26 | //usage:#define chmod_trivial_usage | 26 | //usage:#define chmod_trivial_usage |
27 | //usage: "[-R"IF_DESKTOP("cvf")"] MODE[,MODE]... FILE..." | 27 | //usage: "[-R"IF_DESKTOP("cvf")"] MODE[,MODE]... FILE..." |
28 | //usage:#define chmod_full_usage "\n\n" | 28 | //usage:#define chmod_full_usage "\n\n" |
29 | //usage: "Each MODE is one or more of the letters ugoa, one of the\n" | 29 | //usage: "MODE is octal number (bit pattern sstrwxrwxrwx) or [ugoa]{+|-|=}[rwxXst]" |
30 | //usage: "symbols +-= and one or more of the letters rwxst\n" | 30 | //usage: "\n" |
31 | //next 4 options are the same for chmod/chown/chgrp: | ||
31 | //usage: "\n -R Recurse" | 32 | //usage: "\n -R Recurse" |
32 | //usage: IF_DESKTOP( | 33 | //usage: IF_DESKTOP( |
33 | //usage: "\n -c List changed files" | 34 | //usage: "\n -c List changed files" |
34 | //usage: "\n -v List all files" | 35 | //usage: "\n -v Verbose" |
35 | //usage: "\n -f Hide errors" | 36 | //usage: "\n -f Hide errors" |
36 | //usage: ) | 37 | //usage: ) |
37 | //usage: | 38 | //usage: |
diff --git a/coreutils/chown.c b/coreutils/chown.c index 170507147..528a2a05a 100644 --- a/coreutils/chown.c +++ b/coreutils/chown.c | |||
@@ -28,15 +28,19 @@ | |||
28 | //usage:#define chown_trivial_usage | 28 | //usage:#define chown_trivial_usage |
29 | //usage: "[-Rh"IF_DESKTOP("LHPcvf")"]... USER[:[GRP]] FILE..." | 29 | //usage: "[-Rh"IF_DESKTOP("LHPcvf")"]... USER[:[GRP]] FILE..." |
30 | //usage:#define chown_full_usage "\n\n" | 30 | //usage:#define chown_full_usage "\n\n" |
31 | //usage: "Change the owner and/or group of FILEs to USER and/or GRP\n" | 31 | //usage: "Change the owner and/or group of FILEs to USER and/or GRP" |
32 | //usage: "\n -R Recurse" | 32 | //usage: "\n" |
33 | //usage: "\n -h Affect symlinks instead of symlink targets" | 33 | //usage: "\n -h Affect symlinks instead of symlink targets" |
34 | //usage: IF_DESKTOP( | 34 | //usage: IF_DESKTOP( |
35 | //usage: "\n -L Traverse all symlinks to directories" | 35 | //usage: "\n -L Traverse all symlinks to directories" |
36 | //usage: "\n -H Traverse symlinks on command line only" | 36 | //usage: "\n -H Traverse symlinks on command line only" |
37 | //usage: "\n -P Don't traverse symlinks (default)" | 37 | //usage: "\n -P Don't traverse symlinks (default)" |
38 | //usage: ) | ||
39 | //next 4 options are the same for chmod/chown/chgrp: | ||
40 | //usage: "\n -R Recurse" | ||
41 | //usage: IF_DESKTOP( | ||
38 | //usage: "\n -c List changed files" | 42 | //usage: "\n -c List changed files" |
39 | //usage: "\n -v List all files" | 43 | //usage: "\n -v Verbose" |
40 | //usage: "\n -f Hide errors" | 44 | //usage: "\n -f Hide errors" |
41 | //usage: ) | 45 | //usage: ) |
42 | //usage: | 46 | //usage: |
diff --git a/coreutils/cut.c b/coreutils/cut.c index 5897d82b6..cc3c32576 100644 --- a/coreutils/cut.c +++ b/coreutils/cut.c | |||
@@ -29,6 +29,7 @@ | |||
29 | //usage: "\n -s Output only lines containing delimiter" | 29 | //usage: "\n -s Output only lines containing delimiter" |
30 | //usage: "\n -f LIST Print only these fields" | 30 | //usage: "\n -f LIST Print only these fields" |
31 | //usage: "\n -n Ignored" | 31 | //usage: "\n -n Ignored" |
32 | //(manpage:-n with -b: don't split multibyte characters) | ||
32 | //usage: | 33 | //usage: |
33 | //usage:#define cut_example_usage | 34 | //usage:#define cut_example_usage |
34 | //usage: "$ echo \"Hello world\" | cut -f 1 -d ' '\n" | 35 | //usage: "$ echo \"Hello world\" | cut -f 1 -d ' '\n" |
diff --git a/coreutils/echo.c b/coreutils/echo.c index aab177cee..82f0358b6 100644 --- a/coreutils/echo.c +++ b/coreutils/echo.c | |||
@@ -43,10 +43,10 @@ | |||
43 | //usage:#define echo_trivial_usage | 43 | //usage:#define echo_trivial_usage |
44 | //usage: IF_FEATURE_FANCY_ECHO("[-neE] ") "[ARG]..." | 44 | //usage: IF_FEATURE_FANCY_ECHO("[-neE] ") "[ARG]..." |
45 | //usage:#define echo_full_usage "\n\n" | 45 | //usage:#define echo_full_usage "\n\n" |
46 | //usage: "Print the specified ARGs to stdout" | 46 | //usage: "Print ARGs to stdout" |
47 | //usage: IF_FEATURE_FANCY_ECHO( "\n" | 47 | //usage: IF_FEATURE_FANCY_ECHO( "\n" |
48 | //usage: "\n -n Suppress trailing newline" | 48 | //usage: "\n -n No trailing newline" |
49 | //usage: "\n -e Interpret backslash escapes (i.e., \\t=tab)" | 49 | //usage: "\n -e Interpret backslash escapes (\\t=tab etc)" |
50 | //usage: "\n -E Don't interpret backslash escapes (default)" | 50 | //usage: "\n -E Don't interpret backslash escapes (default)" |
51 | //usage: ) | 51 | //usage: ) |
52 | //usage: | 52 | //usage: |
diff --git a/coreutils/id.c b/coreutils/id.c index f453a87ae..18bda3c55 100644 --- a/coreutils/id.c +++ b/coreutils/id.c | |||
@@ -52,7 +52,7 @@ | |||
52 | //usage:#define groups_trivial_usage | 52 | //usage:#define groups_trivial_usage |
53 | //usage: "[USER]" | 53 | //usage: "[USER]" |
54 | //usage:#define groups_full_usage "\n\n" | 54 | //usage:#define groups_full_usage "\n\n" |
55 | //usage: "Print the group memberships of USER or for the current process" | 55 | //usage: "Print the groups USER is in" |
56 | //usage: | 56 | //usage: |
57 | //usage:#define groups_example_usage | 57 | //usage:#define groups_example_usage |
58 | //usage: "$ groups\n" | 58 | //usage: "$ groups\n" |
diff --git a/e2fsprogs/chattr.c b/e2fsprogs/chattr.c index c37469021..1d267f7a4 100644 --- a/e2fsprogs/chattr.c +++ b/e2fsprogs/chattr.c | |||
@@ -24,22 +24,23 @@ | |||
24 | //usage:#define chattr_full_usage "\n\n" | 24 | //usage:#define chattr_full_usage "\n\n" |
25 | //usage: "Change ext2 file attributes\n" | 25 | //usage: "Change ext2 file attributes\n" |
26 | //usage: "\n -R Recurse" | 26 | //usage: "\n -R Recurse" |
27 | //usage: "\n -v VER Set version/generation number" | 27 | //TODD? "\n -p NUM Set project number" |
28 | //usage: "\n -v NUM Set version/generation number" | ||
28 | //-V, -f accepted but ignored | 29 | //-V, -f accepted but ignored |
29 | //usage: "\nModifiers:" | 30 | //usage: "\nModifiers:" |
30 | //usage: "\n -,+,= Remove/add/set attributes" | 31 | //usage: "\n -,+,= Remove/add/set attributes" |
31 | //usage: "\nAttributes:" | 32 | //usage: "\nAttributes:" |
32 | //usage: "\n A Don't track atime" | 33 | //usage: "\n A No atime" |
33 | //usage: "\n a Append mode only" | 34 | //usage: "\n a Append only" |
34 | //usage: "\n c Enable compress" | 35 | //usage: "\n c Compressed" |
35 | //usage: "\n D Write dir contents synchronously" | 36 | //usage: "\n D Synchronous dir updates" |
36 | //usage: "\n d Don't backup with dump" | 37 | //usage: "\n d Don't backup with dump" |
37 | //usage: "\n i Cannot be modified (immutable)" | 38 | //usage: "\n i Immutable" |
38 | //usage: "\n j Write all data to journal first" | 39 | //usage: "\n j Write data to journal first" |
39 | //usage: "\n s Zero disk storage when deleted" | 40 | //usage: "\n s Zero storage when deleted" |
40 | //usage: "\n S Write synchronously" | 41 | //usage: "\n S Synchronous file updates" |
41 | //usage: "\n t Disable tail-merging of partial blocks with other files" | 42 | //usage: "\n t Don't tail-merge with other files" |
42 | //usage: "\n u Allow file to be undeleted" | 43 | //usage: "\n u Allow undelete" |
43 | 44 | ||
44 | #include "libbb.h" | 45 | #include "libbb.h" |
45 | #include "e2fs_lib.h" | 46 | #include "e2fs_lib.h" |
diff --git a/editors/cmp.c b/editors/cmp.c index 6e27a841a..e106d814e 100644 --- a/editors/cmp.c +++ b/editors/cmp.c | |||
@@ -18,7 +18,7 @@ | |||
18 | //kbuild:lib-$(CONFIG_CMP) += cmp.o | 18 | //kbuild:lib-$(CONFIG_CMP) += cmp.o |
19 | 19 | ||
20 | //usage:#define cmp_trivial_usage | 20 | //usage:#define cmp_trivial_usage |
21 | //usage: "[-l] [-s] FILE1 [FILE2" IF_DESKTOP(" [SKIP1 [SKIP2]]") "]" | 21 | //usage: "[-ls] FILE1 [FILE2" IF_DESKTOP(" [SKIP1 [SKIP2]]") "]" |
22 | //usage:#define cmp_full_usage "\n\n" | 22 | //usage:#define cmp_full_usage "\n\n" |
23 | //usage: "Compare FILE1 with FILE2 (or stdin)\n" | 23 | //usage: "Compare FILE1 with FILE2 (or stdin)\n" |
24 | //usage: "\n -l Write the byte numbers (decimal) and values (octal)" | 24 | //usage: "\n -l Write the byte numbers (decimal) and values (octal)" |
diff --git a/findutils/grep.c b/findutils/grep.c index 10cca83e7..d84766ca9 100644 --- a/findutils/grep.c +++ b/findutils/grep.c | |||
@@ -63,8 +63,8 @@ | |||
63 | //usage: "[-HhnlLoqvsrRiwFE" | 63 | //usage: "[-HhnlLoqvsrRiwFE" |
64 | //usage: IF_EXTRA_COMPAT("z") | 64 | //usage: IF_EXTRA_COMPAT("z") |
65 | //usage: "] [-m N] " | 65 | //usage: "] [-m N] " |
66 | //usage: IF_FEATURE_GREP_CONTEXT("[-A/B/C N] ") | 66 | //usage: IF_FEATURE_GREP_CONTEXT("[-A|B|C N] ") |
67 | //usage: "PATTERN/-e PATTERN.../-f FILE [FILE]..." | 67 | //usage: "PATTERN | -e PATTERN... | -f FILE [FILE]..." |
68 | //usage:#define grep_full_usage "\n\n" | 68 | //usage:#define grep_full_usage "\n\n" |
69 | //usage: "Search for PATTERN in FILEs (or stdin)\n" | 69 | //usage: "Search for PATTERN in FILEs (or stdin)\n" |
70 | //usage: "\n -H Add 'filename:' prefix" | 70 | //usage: "\n -H Add 'filename:' prefix" |
diff --git a/miscutils/flashcp.c b/miscutils/flashcp.c index 1ca9d158d..93c80cc6c 100644 --- a/miscutils/flashcp.c +++ b/miscutils/flashcp.c | |||
@@ -19,9 +19,9 @@ | |||
19 | //kbuild:lib-$(CONFIG_FLASHCP) += flashcp.o | 19 | //kbuild:lib-$(CONFIG_FLASHCP) += flashcp.o |
20 | 20 | ||
21 | //usage:#define flashcp_trivial_usage | 21 | //usage:#define flashcp_trivial_usage |
22 | //usage: "-v FILE MTD_DEVICE" | 22 | //usage: "[-v] FILE MTD_DEVICE" |
23 | //usage:#define flashcp_full_usage "\n\n" | 23 | //usage:#define flashcp_full_usage "\n\n" |
24 | //usage: "Copy an image to MTD device\n" | 24 | //usage: "Copy FILE to MTD device\n" |
25 | //usage: "\n -v Verbose" | 25 | //usage: "\n -v Verbose" |
26 | 26 | ||
27 | #include "libbb.h" | 27 | #include "libbb.h" |
diff --git a/procps/free.c b/procps/free.c index 0adef501f..568362913 100644 --- a/procps/free.c +++ b/procps/free.c | |||
@@ -19,7 +19,7 @@ | |||
19 | //kbuild:lib-$(CONFIG_FREE) += free.o | 19 | //kbuild:lib-$(CONFIG_FREE) += free.o |
20 | 20 | ||
21 | //usage:#define free_trivial_usage | 21 | //usage:#define free_trivial_usage |
22 | //usage: "" IF_DESKTOP("[-b/k/m/g]") | 22 | //usage: "" IF_DESKTOP("[-bkmg]") |
23 | //usage:#define free_full_usage "\n\n" | 23 | //usage:#define free_full_usage "\n\n" |
24 | //usage: "Display the amount of free and used system memory" | 24 | //usage: "Display the amount of free and used system memory" |
25 | //usage: | 25 | //usage: |
diff --git a/procps/kill.c b/procps/kill.c index 4a2eab613..8f10e21ab 100644 --- a/procps/kill.c +++ b/procps/kill.c | |||
@@ -59,7 +59,7 @@ | |||
59 | //usage: "$ kill 252\n" | 59 | //usage: "$ kill 252\n" |
60 | //usage: | 60 | //usage: |
61 | //usage:#define killall_trivial_usage | 61 | //usage:#define killall_trivial_usage |
62 | //usage: "[-l] [-q] [-SIG] PROCESS_NAME..." | 62 | //usage: "[-lq] [-SIG] PROCESS_NAME..." |
63 | //usage:#define killall_full_usage "\n\n" | 63 | //usage:#define killall_full_usage "\n\n" |
64 | //usage: "Send a signal (default: TERM) to given processes\n" | 64 | //usage: "Send a signal (default: TERM) to given processes\n" |
65 | //usage: "\n -l List all signal names and numbers" | 65 | //usage: "\n -l List all signal names and numbers" |
diff --git a/shell/ash.c b/shell/ash.c index bcf7a3470..85d43ca6f 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -14398,7 +14398,7 @@ init(void) | |||
14398 | 14398 | ||
14399 | 14399 | ||
14400 | //usage:#define ash_trivial_usage | 14400 | //usage:#define ash_trivial_usage |
14401 | //usage: "[-il] [-/+Cabefmnuvx] [-/+o OPT]... [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS] / -s [ARGS]]" | 14401 | //usage: "[-il] [-|+Cabefmnuvx] [-|+o OPT]... [-c 'SCRIPT' [ARG0 [ARGS]] | FILE [ARGS] | -s [ARGS]]" |
14402 | //////// comes from ^^^^^^^^^^optletters | 14402 | //////// comes from ^^^^^^^^^^optletters |
14403 | //usage:#define ash_full_usage "\n\n" | 14403 | //usage:#define ash_full_usage "\n\n" |
14404 | //usage: "Unix shell interpreter" | 14404 | //usage: "Unix shell interpreter" |
diff --git a/shell/hush.c b/shell/hush.c index 77921e11c..4a049899b 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -339,7 +339,7 @@ | |||
339 | * therefore we don't show them either. | 339 | * therefore we don't show them either. |
340 | */ | 340 | */ |
341 | //usage:#define hush_trivial_usage | 341 | //usage:#define hush_trivial_usage |
342 | //usage: "[-enxl] [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS] / -s [ARGS]]" | 342 | //usage: "[-enxl] [-c 'SCRIPT' [ARG0 [ARGS]] | FILE [ARGS] | -s [ARGS]]" |
343 | //usage:#define hush_full_usage "\n\n" | 343 | //usage:#define hush_full_usage "\n\n" |
344 | //usage: "Unix shell interpreter" | 344 | //usage: "Unix shell interpreter" |
345 | 345 | ||
diff --git a/sysklogd/logger.c b/sysklogd/logger.c index 9422b6ea7..04b2c8e3b 100644 --- a/sysklogd/logger.c +++ b/sysklogd/logger.c | |||
@@ -26,7 +26,7 @@ | |||
26 | //usage: "Write MESSAGE (or stdin) to syslog\n" | 26 | //usage: "Write MESSAGE (or stdin) to syslog\n" |
27 | //usage: "\n -s Log to stderr as well as the system log" | 27 | //usage: "\n -s Log to stderr as well as the system log" |
28 | //usage: "\n -t TAG Log using the specified tag (defaults to user name)" | 28 | //usage: "\n -t TAG Log using the specified tag (defaults to user name)" |
29 | //usage: "\n -p PRIO Priority (numeric or facility.level pair)" | 29 | //usage: "\n -p PRIO Priority (number or FACILITY.LEVEL pair)" |
30 | //usage: | 30 | //usage: |
31 | //usage:#define logger_example_usage | 31 | //usage:#define logger_example_usage |
32 | //usage: "$ logger \"hello\"\n" | 32 | //usage: "$ logger \"hello\"\n" |
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c index dc4e57169..6670b84de 100644 --- a/util-linux/dmesg.c +++ b/util-linux/dmesg.c | |||
@@ -46,7 +46,7 @@ | |||
46 | //kbuild:lib-$(CONFIG_DMESG) += dmesg.o | 46 | //kbuild:lib-$(CONFIG_DMESG) += dmesg.o |
47 | 47 | ||
48 | //usage:#define dmesg_trivial_usage | 48 | //usage:#define dmesg_trivial_usage |
49 | //usage: "[-c] [-n LEVEL] [-s SIZE]" | 49 | //usage: "[-cr] [-n LEVEL] [-s SIZE]" |
50 | //usage:#define dmesg_full_usage "\n\n" | 50 | //usage:#define dmesg_full_usage "\n\n" |
51 | //usage: "Print or control the kernel ring buffer\n" | 51 | //usage: "Print or control the kernel ring buffer\n" |
52 | //usage: "\n -c Clear ring buffer after printing" | 52 | //usage: "\n -c Clear ring buffer after printing" |
diff --git a/util-linux/ionice.c b/util-linux/ionice.c index c8fb1a777..ff5177abb 100644 --- a/util-linux/ionice.c +++ b/util-linux/ionice.c | |||
@@ -18,7 +18,8 @@ | |||
18 | //kbuild:lib-$(CONFIG_IONICE) += ionice.o | 18 | //kbuild:lib-$(CONFIG_IONICE) += ionice.o |
19 | 19 | ||
20 | //usage:#define ionice_trivial_usage | 20 | //usage:#define ionice_trivial_usage |
21 | //usage: "[-c 1-3] [-n 0-7] [-p PID] [PROG ARGS]" | 21 | //usage: "[-c 1-3] [-n 0-7] { -p PID | PROG ARGS }" |
22 | //TODO: | -P PGID | -u UID; also -pPu can take _list of_ IDs | ||
22 | //usage:#define ionice_full_usage "\n\n" | 23 | //usage:#define ionice_full_usage "\n\n" |
23 | //usage: "Change I/O priority and class\n" | 24 | //usage: "Change I/O priority and class\n" |
24 | //usage: "\n -c N Class. 1:realtime 2:best-effort 3:idle" | 25 | //usage: "\n -c N Class. 1:realtime 2:best-effort 3:idle" |