diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-16 14:24:27 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-16 14:24:27 +0200 |
commit | 609df6f22a960e45b727698f33be695d42541e25 (patch) | |
tree | 110666f41ba12073198ec64e6e735a4c8927f4d6 | |
parent | 57be5daa40c40df411716e22de0795160c88e647 (diff) | |
download | busybox-w32-609df6f22a960e45b727698f33be695d42541e25.tar.gz busybox-w32-609df6f22a960e45b727698f33be695d42541e25.tar.bz2 busybox-w32-609df6f22a960e45b727698f33be695d42541e25.zip |
*: more --help tweaks
function old new delta
packed_usage 33522 33534 +12
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | findutils/grep.c | 4 | ||||
-rw-r--r-- | networking/ftpd.c | 2 | ||||
-rw-r--r-- | networking/udhcp/d6_dhcpc.c | 18 | ||||
-rw-r--r-- | networking/udhcp/dhcpc.c | 2 |
4 files changed, 12 insertions, 14 deletions
diff --git a/findutils/grep.c b/findutils/grep.c index d84766ca9..be4362ed0 100644 --- a/findutils/grep.c +++ b/findutils/grep.c | |||
@@ -57,14 +57,12 @@ | |||
57 | #include "common_bufsiz.h" | 57 | #include "common_bufsiz.h" |
58 | #include "xregex.h" | 58 | #include "xregex.h" |
59 | 59 | ||
60 | |||
61 | /* options */ | ||
62 | //usage:#define grep_trivial_usage | 60 | //usage:#define grep_trivial_usage |
63 | //usage: "[-HhnlLoqvsrRiwFE" | 61 | //usage: "[-HhnlLoqvsrRiwFE" |
64 | //usage: IF_EXTRA_COMPAT("z") | 62 | //usage: IF_EXTRA_COMPAT("z") |
65 | //usage: "] [-m N] " | 63 | //usage: "] [-m N] " |
66 | //usage: IF_FEATURE_GREP_CONTEXT("[-A|B|C N] ") | 64 | //usage: IF_FEATURE_GREP_CONTEXT("[-A|B|C N] ") |
67 | //usage: "PATTERN | -e PATTERN... | -f FILE [FILE]..." | 65 | //usage: "{ PATTERN | -e PATTERN... | -f FILE... } [FILE]..." |
68 | //usage:#define grep_full_usage "\n\n" | 66 | //usage:#define grep_full_usage "\n\n" |
69 | //usage: "Search for PATTERN in FILEs (or stdin)\n" | 67 | //usage: "Search for PATTERN in FILEs (or stdin)\n" |
70 | //usage: "\n -H Add 'filename:' prefix" | 68 | //usage: "\n -H Add 'filename:' prefix" |
diff --git a/networking/ftpd.c b/networking/ftpd.c index 096d4c14d..0d6a289c7 100644 --- a/networking/ftpd.c +++ b/networking/ftpd.c | |||
@@ -54,7 +54,7 @@ | |||
54 | //kbuild:lib-$(CONFIG_FTPD) += ftpd.o | 54 | //kbuild:lib-$(CONFIG_FTPD) += ftpd.o |
55 | 55 | ||
56 | //usage:#define ftpd_trivial_usage | 56 | //usage:#define ftpd_trivial_usage |
57 | //usage: "[-wvS]"IF_FEATURE_FTPD_AUTHENTICATION(" [-a USER]")" [-t N] [-T N] [DIR]" | 57 | //usage: "[-wvS]"IF_FEATURE_FTPD_AUTHENTICATION(" [-a USER]")" [-t SEC] [-T SEC] [DIR]" |
58 | //usage:#define ftpd_full_usage "\n\n" | 58 | //usage:#define ftpd_full_usage "\n\n" |
59 | //usage: IF_NOT_FEATURE_FTPD_AUTHENTICATION( | 59 | //usage: IF_NOT_FEATURE_FTPD_AUTHENTICATION( |
60 | //usage: "Anonymous FTP server. Client access occurs under ftpd's UID.\n" | 60 | //usage: "Anonymous FTP server. Client access occurs under ftpd's UID.\n" |
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c index 802a27521..8d11a7539 100644 --- a/networking/udhcp/d6_dhcpc.c +++ b/networking/udhcp/d6_dhcpc.c | |||
@@ -1127,23 +1127,23 @@ static void client_background(void) | |||
1127 | //usage:# define IF_UDHCP_VERBOSE(...) | 1127 | //usage:# define IF_UDHCP_VERBOSE(...) |
1128 | //usage:#endif | 1128 | //usage:#endif |
1129 | //usage:#define udhcpc6_trivial_usage | 1129 | //usage:#define udhcpc6_trivial_usage |
1130 | //usage: "[-fbnq"IF_UDHCP_VERBOSE("v")"odR] [-i IFACE] [-r IPv6] [-s PROG] [-p PIDFILE]\n" | 1130 | //usage: "[-fbq"IF_UDHCP_VERBOSE("v")"R] [-t N] [-T SEC] [-A SEC|-n] [-i IFACE] [-s PROG]\n" |
1131 | //usage: " [-x OPT:VAL]... [-O OPT]..." IF_FEATURE_UDHCP_PORT(" [-P PORT]") | 1131 | //usage: " [-p PIDFILE]"IF_FEATURE_UDHCP_PORT(" [-P PORT]")" [-ldo] [-r IPv6] [-x OPT:VAL]... [-O OPT]..." |
1132 | //usage:#define udhcpc6_full_usage "\n" | 1132 | //usage:#define udhcpc6_full_usage "\n" |
1133 | //usage: "\n -i IFACE Interface to use (default "CONFIG_UDHCPC_DEFAULT_INTERFACE")" | 1133 | //usage: "\n -i IFACE Interface to use (default "CONFIG_UDHCPC_DEFAULT_INTERFACE")" |
1134 | //usage: "\n -p FILE Create pidfile" | 1134 | //usage: "\n -p FILE Create pidfile" |
1135 | //usage: "\n -s PROG Run PROG at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" | 1135 | //usage: "\n -s PROG Run PROG at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" |
1136 | //usage: "\n -B Request broadcast replies" | 1136 | //usage: "\n -B Request broadcast replies" |
1137 | //usage: "\n -t N Send up to N discover packets" | 1137 | //usage: "\n -t N Send up to N discover packets" |
1138 | //usage: "\n -T N Pause between packets (default 3 seconds)" | 1138 | //usage: "\n -T SEC Pause between packets (default 3)" |
1139 | //usage: "\n -A N Wait N seconds (default 20) after failure" | 1139 | //usage: "\n -A SEC Wait if lease is not obtained (default 20)" |
1140 | //usage: "\n -f Run in foreground" | ||
1141 | //usage: USE_FOR_MMU( | 1140 | //usage: USE_FOR_MMU( |
1142 | //usage: "\n -b Background if lease is not obtained" | 1141 | //usage: "\n -b Background if lease is not obtained" |
1143 | //usage: ) | 1142 | //usage: ) |
1144 | //usage: "\n -n Exit if lease is not obtained" | 1143 | //usage: "\n -n Exit if lease is not obtained" |
1145 | //usage: "\n -q Exit after obtaining lease" | 1144 | //usage: "\n -q Exit after obtaining lease" |
1146 | //usage: "\n -R Release IP on exit" | 1145 | //usage: "\n -R Release IP on exit" |
1146 | //usage: "\n -f Run in foreground" | ||
1147 | //usage: "\n -S Log to syslog too" | 1147 | //usage: "\n -S Log to syslog too" |
1148 | //usage: IF_FEATURE_UDHCP_PORT( | 1148 | //usage: IF_FEATURE_UDHCP_PORT( |
1149 | //usage: "\n -P PORT Use PORT (default 546)" | 1149 | //usage: "\n -P PORT Use PORT (default 546)" |
@@ -1151,12 +1151,12 @@ static void client_background(void) | |||
1151 | ////usage: IF_FEATURE_UDHCPC_ARPING( | 1151 | ////usage: IF_FEATURE_UDHCPC_ARPING( |
1152 | ////usage: "\n -a Use arping to validate offered address" | 1152 | ////usage: "\n -a Use arping to validate offered address" |
1153 | ////usage: ) | 1153 | ////usage: ) |
1154 | //usage: "\n -O OPT Request option OPT from server (cumulative)" | ||
1155 | //usage: "\n -o Don't request any options (unless -O is given)" | ||
1156 | //usage: "\n -r IPv6 Request this address ('no' to not request any IP)" | ||
1157 | //usage: "\n -d Request prefix" | ||
1158 | //usage: "\n -l Send 'information request' instead of 'solicit'" | 1154 | //usage: "\n -l Send 'information request' instead of 'solicit'" |
1159 | //usage: "\n (used for servers which do not assign IPv6 addresses)" | 1155 | //usage: "\n (used for servers which do not assign IPv6 addresses)" |
1156 | //usage: "\n -r IPv6 Request this address ('no' to not request any IP)" | ||
1157 | //usage: "\n -d Request prefix" | ||
1158 | //usage: "\n -o Don't request any options (unless -O is given)" | ||
1159 | //usage: "\n -O OPT Request option OPT from server (cumulative)" | ||
1160 | //usage: "\n -x OPT:VAL Include option OPT in sent packets (cumulative)" | 1160 | //usage: "\n -x OPT:VAL Include option OPT in sent packets (cumulative)" |
1161 | //usage: "\n Examples of string, numeric, and hex byte opts:" | 1161 | //usage: "\n Examples of string, numeric, and hex byte opts:" |
1162 | //usage: "\n -x hostname:bbox - option 12" | 1162 | //usage: "\n -x hostname:bbox - option 12" |
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index ab9edd264..331f13a8c 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -1161,7 +1161,7 @@ static void client_background(void) | |||
1161 | //usage:# define IF_UDHCP_VERBOSE(...) | 1161 | //usage:# define IF_UDHCP_VERBOSE(...) |
1162 | //usage:#endif | 1162 | //usage:#endif |
1163 | //usage:#define udhcpc_trivial_usage | 1163 | //usage:#define udhcpc_trivial_usage |
1164 | //usage: "[-fbq"IF_UDHCP_VERBOSE("v")"RB]"IF_FEATURE_UDHCPC_ARPING(" [-a[MSEC]]")" [-t N] [-T SEC] [-A SEC/-n]\n" | 1164 | //usage: "[-fbq"IF_UDHCP_VERBOSE("v")"RB]"IF_FEATURE_UDHCPC_ARPING(" [-a[MSEC]]")" [-t N] [-T SEC] [-A SEC|-n]\n" |
1165 | //usage: " [-i IFACE]"IF_FEATURE_UDHCP_PORT(" [-P PORT]")" [-s PROG] [-p PIDFILE]\n" | 1165 | //usage: " [-i IFACE]"IF_FEATURE_UDHCP_PORT(" [-P PORT]")" [-s PROG] [-p PIDFILE]\n" |
1166 | //usage: " [-oC] [-r IP] [-V VENDOR] [-F NAME] [-x OPT:VAL]... [-O OPT]..." | 1166 | //usage: " [-oC] [-r IP] [-V VENDOR] [-F NAME] [-x OPT:VAL]... [-O OPT]..." |
1167 | //usage:#define udhcpc_full_usage "\n" | 1167 | //usage:#define udhcpc_full_usage "\n" |