diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-13 22:34:05 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-13 22:34:05 +0100 |
commit | 84d5eddb25930ee8a5ff96536ca6f707d793eb24 (patch) | |
tree | 21406cb8b2a2661459e3aba4428e74995d69368d | |
parent | 63139b531f7f1d71d8274810b163da1a78d4609e (diff) | |
download | busybox-w32-84d5eddb25930ee8a5ff96536ca6f707d793eb24.tar.gz busybox-w32-84d5eddb25930ee8a5ff96536ca6f707d793eb24.tar.bz2 busybox-w32-84d5eddb25930ee8a5ff96536ca6f707d793eb24.zip |
help text: replace [OPTIONS] with actual options (if not too long)
function old new delta
packed_usage 33620 33665 +45
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | coreutils/cp.c | 2 | ||||
-rw-r--r-- | coreutils/ln.c | 4 | ||||
-rw-r--r-- | coreutils/nl.c | 2 | ||||
-rw-r--r-- | coreutils/paste.c | 2 | ||||
-rw-r--r-- | editors/patch.c | 2 | ||||
-rw-r--r-- | editors/vi.c | 2 | ||||
-rw-r--r-- | loginutils/cryptpw.c | 10 | ||||
-rw-r--r-- | modutils/insmod.c | 2 | ||||
-rw-r--r-- | networking/ipcalc.c | 2 | ||||
-rw-r--r-- | procps/fuser.c | 2 | ||||
-rw-r--r-- | procps/pidof.c | 2 | ||||
-rw-r--r-- | sysklogd/logger.c | 2 | ||||
-rw-r--r-- | util-linux/fstrim.c | 8 | ||||
-rw-r--r-- | util-linux/umount.c | 8 |
14 files changed, 17 insertions, 33 deletions
diff --git a/coreutils/cp.c b/coreutils/cp.c index cfeb19fc4..9b9b8f7bf 100644 --- a/coreutils/cp.c +++ b/coreutils/cp.c | |||
@@ -38,7 +38,7 @@ | |||
38 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/cp.html */ | 38 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/cp.html */ |
39 | 39 | ||
40 | //usage:#define cp_trivial_usage | 40 | //usage:#define cp_trivial_usage |
41 | //usage: "[OPTIONS] SOURCE... DEST" | 41 | //usage: "[-arPLHpfilsTu] SOURCE... DEST" |
42 | //usage:#define cp_full_usage "\n\n" | 42 | //usage:#define cp_full_usage "\n\n" |
43 | //usage: "Copy SOURCE(s) to DEST\n" | 43 | //usage: "Copy SOURCE(s) to DEST\n" |
44 | //usage: "\n -a Same as -dpR" | 44 | //usage: "\n -a Same as -dpR" |
diff --git a/coreutils/ln.c b/coreutils/ln.c index 5591e8335..2dcf79c07 100644 --- a/coreutils/ln.c +++ b/coreutils/ln.c | |||
@@ -21,14 +21,14 @@ | |||
21 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/ln.html */ | 21 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/ln.html */ |
22 | 22 | ||
23 | //usage:#define ln_trivial_usage | 23 | //usage:#define ln_trivial_usage |
24 | //usage: "[OPTIONS] TARGET... LINK|DIR" | 24 | //usage: "[-sfnbtv] [-S SUF] TARGET... LINK|DIR" |
25 | //usage:#define ln_full_usage "\n\n" | 25 | //usage:#define ln_full_usage "\n\n" |
26 | //usage: "Create a link LINK or DIR/TARGET to the specified TARGET(s)\n" | 26 | //usage: "Create a link LINK or DIR/TARGET to the specified TARGET(s)\n" |
27 | //usage: "\n -s Make symlinks instead of hardlinks" | 27 | //usage: "\n -s Make symlinks instead of hardlinks" |
28 | //usage: "\n -f Remove existing destinations" | 28 | //usage: "\n -f Remove existing destinations" |
29 | //usage: "\n -n Don't dereference symlinks - treat like normal file" | 29 | //usage: "\n -n Don't dereference symlinks - treat like normal file" |
30 | //usage: "\n -b Make a backup of the target (if exists) before link operation" | 30 | //usage: "\n -b Make a backup of the target (if exists) before link operation" |
31 | //usage: "\n -S suf Use suffix instead of ~ when making backup files" | 31 | //usage: "\n -S SUF Use suffix instead of ~ when making backup files" |
32 | //usage: "\n -T Treat LINK as a file, not DIR" | 32 | //usage: "\n -T Treat LINK as a file, not DIR" |
33 | //usage: "\n -v Verbose" | 33 | //usage: "\n -v Verbose" |
34 | //usage: | 34 | //usage: |
diff --git a/coreutils/nl.c b/coreutils/nl.c index aea019c56..800b73c26 100644 --- a/coreutils/nl.c +++ b/coreutils/nl.c | |||
@@ -19,7 +19,7 @@ | |||
19 | //usage:#define nl_full_usage "\n\n" | 19 | //usage:#define nl_full_usage "\n\n" |
20 | //usage: "Write FILEs to standard output with line numbers added\n" | 20 | //usage: "Write FILEs to standard output with line numbers added\n" |
21 | //usage: "\n -b STYLE Which lines to number - a: all, t: nonempty, n: none" | 21 | //usage: "\n -b STYLE Which lines to number - a: all, t: nonempty, n: none" |
22 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TODO: support "pBRE": number only lines thatmatch regexp BRE" | 22 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TODO: support "pBRE": number only lines that match regexp BRE" |
23 | ////usage: "\n -f STYLE footer lines" | 23 | ////usage: "\n -f STYLE footer lines" |
24 | ////usage: "\n -h STYLE header lines" | 24 | ////usage: "\n -h STYLE header lines" |
25 | ////usage: "\n -d CC use CC for separating logical pages" | 25 | ////usage: "\n -d CC use CC for separating logical pages" |
diff --git a/coreutils/paste.c b/coreutils/paste.c index 11743297a..fd2aa5027 100644 --- a/coreutils/paste.c +++ b/coreutils/paste.c | |||
@@ -18,7 +18,7 @@ | |||
18 | //kbuild:lib-$(CONFIG_PASTE) += paste.o | 18 | //kbuild:lib-$(CONFIG_PASTE) += paste.o |
19 | 19 | ||
20 | //usage:#define paste_trivial_usage | 20 | //usage:#define paste_trivial_usage |
21 | //usage: "[OPTIONS] [FILE]..." | 21 | //usage: "[-d LIST] [-s] [FILE]..." |
22 | //usage:#define paste_full_usage "\n\n" | 22 | //usage:#define paste_full_usage "\n\n" |
23 | //usage: "Paste lines from each input file, separated with tab\n" | 23 | //usage: "Paste lines from each input file, separated with tab\n" |
24 | //usage: "\n -d LIST Use delimiters from LIST, not tab" | 24 | //usage: "\n -d LIST Use delimiters from LIST, not tab" |
diff --git a/editors/patch.c b/editors/patch.c index aaa253591..110176630 100644 --- a/editors/patch.c +++ b/editors/patch.c | |||
@@ -31,7 +31,7 @@ | |||
31 | //kbuild:lib-$(CONFIG_PATCH) += patch.o | 31 | //kbuild:lib-$(CONFIG_PATCH) += patch.o |
32 | 32 | ||
33 | //usage:#define patch_trivial_usage | 33 | //usage:#define patch_trivial_usage |
34 | //usage: "[OPTIONS] [ORIGFILE [PATCHFILE]]" | 34 | //usage: "[-RNE] [-p N] [-i DIFF] [ORIGFILE [PATCHFILE]]" |
35 | //usage:#define patch_full_usage "\n\n" | 35 | //usage:#define patch_full_usage "\n\n" |
36 | //usage: " -p N Strip N leading components from file names" | 36 | //usage: " -p N Strip N leading components from file names" |
37 | //usage: "\n -i DIFF Read DIFF instead of stdin" | 37 | //usage: "\n -i DIFF Read DIFF instead of stdin" |
diff --git a/editors/vi.c b/editors/vi.c index 1dd0b6fb6..01597fa5e 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -166,7 +166,7 @@ | |||
166 | //kbuild:lib-$(CONFIG_VI) += vi.o | 166 | //kbuild:lib-$(CONFIG_VI) += vi.o |
167 | 167 | ||
168 | //usage:#define vi_trivial_usage | 168 | //usage:#define vi_trivial_usage |
169 | //usage: "[OPTIONS] [FILE]..." | 169 | //usage: IF_FEATURE_VI_COLON("[-c CMD] ")IF_FEATURE_VI_READONLY("[-R] ")"[FILE]..." |
170 | //usage:#define vi_full_usage "\n\n" | 170 | //usage:#define vi_full_usage "\n\n" |
171 | //usage: "Edit FILE\n" | 171 | //usage: "Edit FILE\n" |
172 | //usage: IF_FEATURE_VI_COLON( | 172 | //usage: IF_FEATURE_VI_COLON( |
diff --git a/loginutils/cryptpw.c b/loginutils/cryptpw.c index fbb7f0515..645f1bb09 100644 --- a/loginutils/cryptpw.c +++ b/loginutils/cryptpw.c | |||
@@ -32,22 +32,14 @@ | |||
32 | //kbuild:lib-$(CONFIG_MKPASSWD) += cryptpw.o | 32 | //kbuild:lib-$(CONFIG_MKPASSWD) += cryptpw.o |
33 | 33 | ||
34 | //usage:#define cryptpw_trivial_usage | 34 | //usage:#define cryptpw_trivial_usage |
35 | //usage: "[OPTIONS] [PASSWORD] [SALT]" | 35 | //usage: "[-s] [-p N] [-m TYPE] [-S SALT] [PASSWORD] [SALT]" |
36 | /* We do support -s, we just don't mention it */ | 36 | /* We do support -s, we just don't mention it */ |
37 | //usage:#define cryptpw_full_usage "\n\n" | 37 | //usage:#define cryptpw_full_usage "\n\n" |
38 | //usage: "Print crypt(3) hashed PASSWORD\n" | 38 | //usage: "Print crypt(3) hashed PASSWORD\n" |
39 | //usage: IF_LONG_OPTS( | ||
40 | //usage: "\n -P,--password-fd N Read password from fd N" | ||
41 | /* //usage: "\n -s,--stdin Use stdin; like -P0" */ | ||
42 | //usage: "\n -m,--method TYPE "CRYPT_METHODS_HELP_STR | ||
43 | //usage: "\n -S,--salt SALT" | ||
44 | //usage: ) | ||
45 | //usage: IF_NOT_LONG_OPTS( | ||
46 | //usage: "\n -P N Read password from fd N" | 39 | //usage: "\n -P N Read password from fd N" |
47 | /* //usage: "\n -s Use stdin; like -P0" */ | 40 | /* //usage: "\n -s Use stdin; like -P0" */ |
48 | //usage: "\n -m TYPE "CRYPT_METHODS_HELP_STR | 41 | //usage: "\n -m TYPE "CRYPT_METHODS_HELP_STR |
49 | //usage: "\n -S SALT" | 42 | //usage: "\n -S SALT" |
50 | //usage: ) | ||
51 | 43 | ||
52 | #include "libbb.h" | 44 | #include "libbb.h" |
53 | 45 | ||
diff --git a/modutils/insmod.c b/modutils/insmod.c index bd79a0f26..8f7163e25 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | //usage:#if !ENABLE_MODPROBE_SMALL | 27 | //usage:#if !ENABLE_MODPROBE_SMALL |
28 | //usage:#define insmod_trivial_usage | 28 | //usage:#define insmod_trivial_usage |
29 | //usage: IF_FEATURE_2_4_MODULES("[OPTIONS] MODULE") | 29 | //usage: IF_FEATURE_2_4_MODULES("[-fkvqLx] MODULE") |
30 | //usage: IF_NOT_FEATURE_2_4_MODULES("FILE") | 30 | //usage: IF_NOT_FEATURE_2_4_MODULES("FILE") |
31 | //usage: IF_FEATURE_CMDLINE_MODULE_OPTIONS(" [SYMBOL=VALUE]...") | 31 | //usage: IF_FEATURE_CMDLINE_MODULE_OPTIONS(" [SYMBOL=VALUE]...") |
32 | //usage:#define insmod_full_usage "\n\n" | 32 | //usage:#define insmod_full_usage "\n\n" |
diff --git a/networking/ipcalc.c b/networking/ipcalc.c index 09b146872..e82e35dd5 100644 --- a/networking/ipcalc.c +++ b/networking/ipcalc.c | |||
@@ -36,7 +36,7 @@ | |||
36 | //kbuild:lib-$(CONFIG_IPCALC) += ipcalc.o | 36 | //kbuild:lib-$(CONFIG_IPCALC) += ipcalc.o |
37 | 37 | ||
38 | //usage:#define ipcalc_trivial_usage | 38 | //usage:#define ipcalc_trivial_usage |
39 | //usage: "[OPTIONS] ADDRESS" | 39 | //usage: "[-bnm"IF_FEATURE_IPCALC_FANCY("phs")"] ADDRESS" |
40 | //usage: IF_FEATURE_IPCALC_FANCY("[/PREFIX]") " [NETMASK]" | 40 | //usage: IF_FEATURE_IPCALC_FANCY("[/PREFIX]") " [NETMASK]" |
41 | //usage:#define ipcalc_full_usage "\n\n" | 41 | //usage:#define ipcalc_full_usage "\n\n" |
42 | //usage: "Calculate and display network settings from IP address\n" | 42 | //usage: "Calculate and display network settings from IP address\n" |
diff --git a/procps/fuser.c b/procps/fuser.c index 418f57b57..191746751 100644 --- a/procps/fuser.c +++ b/procps/fuser.c | |||
@@ -19,7 +19,7 @@ | |||
19 | //kbuild:lib-$(CONFIG_FUSER) += fuser.o | 19 | //kbuild:lib-$(CONFIG_FUSER) += fuser.o |
20 | 20 | ||
21 | //usage:#define fuser_trivial_usage | 21 | //usage:#define fuser_trivial_usage |
22 | //usage: "[OPTIONS] FILE or PORT/PROTO" | 22 | //usage: "[-msk46] [-SIGNAL] FILE or PORT/PROTO" |
23 | //usage:#define fuser_full_usage "\n\n" | 23 | //usage:#define fuser_full_usage "\n\n" |
24 | //usage: "Find processes which use FILEs or PORTs\n" | 24 | //usage: "Find processes which use FILEs or PORTs\n" |
25 | //usage: "\n -m Find processes which use same fs as FILEs" | 25 | //usage: "\n -m Find processes which use same fs as FILEs" |
diff --git a/procps/pidof.c b/procps/pidof.c index 5595e3421..b81709a81 100644 --- a/procps/pidof.c +++ b/procps/pidof.c | |||
@@ -39,7 +39,7 @@ | |||
39 | 39 | ||
40 | //usage:#if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT) | 40 | //usage:#if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT) |
41 | //usage:#define pidof_trivial_usage | 41 | //usage:#define pidof_trivial_usage |
42 | //usage: "[OPTIONS] [NAME]..." | 42 | //usage: IF_FEATURE_PIDOF_SINGLE("[-s] ")IF_FEATURE_PIDOF_OMIT("[-o PID] ")"[NAME]..." |
43 | //usage:#define USAGE_PIDOF "\n" | 43 | //usage:#define USAGE_PIDOF "\n" |
44 | //usage:#else | 44 | //usage:#else |
45 | //usage:#define pidof_trivial_usage | 45 | //usage:#define pidof_trivial_usage |
diff --git a/sysklogd/logger.c b/sysklogd/logger.c index 4d692d6fc..9422b6ea7 100644 --- a/sysklogd/logger.c +++ b/sysklogd/logger.c | |||
@@ -21,7 +21,7 @@ | |||
21 | //kbuild:lib-$(CONFIG_LOGGER) += syslogd_and_logger.o | 21 | //kbuild:lib-$(CONFIG_LOGGER) += syslogd_and_logger.o |
22 | 22 | ||
23 | //usage:#define logger_trivial_usage | 23 | //usage:#define logger_trivial_usage |
24 | //usage: "[OPTIONS] [MESSAGE]" | 24 | //usage: "[-s] [-t TAG] [-p PRIO] [MESSAGE]" |
25 | //usage:#define logger_full_usage "\n\n" | 25 | //usage:#define logger_full_usage "\n\n" |
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" |
diff --git a/util-linux/fstrim.c b/util-linux/fstrim.c index 8d29a6d54..6d673002f 100644 --- a/util-linux/fstrim.c +++ b/util-linux/fstrim.c | |||
@@ -20,18 +20,10 @@ | |||
20 | //usage:#define fstrim_trivial_usage | 20 | //usage:#define fstrim_trivial_usage |
21 | //usage: "[OPTIONS] MOUNTPOINT" | 21 | //usage: "[OPTIONS] MOUNTPOINT" |
22 | //usage:#define fstrim_full_usage "\n\n" | 22 | //usage:#define fstrim_full_usage "\n\n" |
23 | //usage: IF_LONG_OPTS( | ||
24 | //usage: " -o,--offset OFFSET Offset in bytes to discard from" | ||
25 | //usage: "\n -l,--length LEN Bytes to discard" | ||
26 | //usage: "\n -m,--minimum MIN Minimum extent length" | ||
27 | //usage: "\n -v,--verbose Print number of discarded bytes" | ||
28 | //usage: ) | ||
29 | //usage: IF_NOT_LONG_OPTS( | ||
30 | //usage: " -o OFFSET Offset in bytes to discard from" | 23 | //usage: " -o OFFSET Offset in bytes to discard from" |
31 | //usage: "\n -l LEN Bytes to discard" | 24 | //usage: "\n -l LEN Bytes to discard" |
32 | //usage: "\n -m MIN Minimum extent length" | 25 | //usage: "\n -m MIN Minimum extent length" |
33 | //usage: "\n -v Print number of discarded bytes" | 26 | //usage: "\n -v Print number of discarded bytes" |
34 | //usage: ) | ||
35 | 27 | ||
36 | #include "libbb.h" | 28 | #include "libbb.h" |
37 | #include <linux/fs.h> | 29 | #include <linux/fs.h> |
diff --git a/util-linux/umount.c b/util-linux/umount.c index 63a3bf504..23da32868 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c | |||
@@ -41,16 +41,16 @@ | |||
41 | //kbuild:lib-$(CONFIG_UMOUNT) += umount.o | 41 | //kbuild:lib-$(CONFIG_UMOUNT) += umount.o |
42 | 42 | ||
43 | //usage:#define umount_trivial_usage | 43 | //usage:#define umount_trivial_usage |
44 | //usage: "[OPTIONS] FILESYSTEM|DIRECTORY" | 44 | //usage: "[-rlf"IF_FEATURE_MTAB_SUPPORT("m")IF_FEATURE_MOUNT_LOOP("d")IF_FEATURE_UMOUNT_ALL("a")"] [-t FSTYPE] FILESYSTEM|DIRECTORY" |
45 | //usage:#define umount_full_usage "\n\n" | 45 | //usage:#define umount_full_usage "\n\n" |
46 | //usage: "Unmount file systems\n" | 46 | //usage: "Unmount filesystems\n" |
47 | //usage: IF_FEATURE_UMOUNT_ALL( | 47 | //usage: IF_FEATURE_UMOUNT_ALL( |
48 | //usage: "\n -a Unmount all file systems" IF_FEATURE_MTAB_SUPPORT(" in /etc/mtab") | 48 | //usage: "\n -a Unmount all filesystems" IF_FEATURE_MTAB_SUPPORT(" in /etc/mtab") |
49 | //usage: ) | 49 | //usage: ) |
50 | //usage: IF_FEATURE_MTAB_SUPPORT( | 50 | //usage: IF_FEATURE_MTAB_SUPPORT( |
51 | //usage: "\n -n Don't erase /etc/mtab entries" | 51 | //usage: "\n -n Don't erase /etc/mtab entries" |
52 | //usage: ) | 52 | //usage: ) |
53 | //usage: "\n -r Try to remount devices as read-only if mount is busy" | 53 | //usage: "\n -r Remount devices read-only if mount is busy" |
54 | //usage: "\n -l Lazy umount (detach filesystem)" | 54 | //usage: "\n -l Lazy umount (detach filesystem)" |
55 | //usage: "\n -f Force umount (i.e., unreachable NFS server)" | 55 | //usage: "\n -f Force umount (i.e., unreachable NFS server)" |
56 | //usage: IF_FEATURE_MOUNT_LOOP( | 56 | //usage: IF_FEATURE_MOUNT_LOOP( |