summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko2010-08-07 02:56:43 +0200
committerDenys Vlasenko2010-08-07 02:56:43 +0200
commit0d98b4409bef0f0c7b57965da0e8d93344445529 (patch)
tree80286749820416668844e1d59f351349e96b8b5d /include
parent09dd6ec7326c91352dc32187dcc215f18c28d3f0 (diff)
downloadbusybox-0d98b4409bef0f0c7b57965da0e8d93344445529.zip
busybox-0d98b4409bef0f0c7b57965da0e8d93344445529.tar.gz
udhcpc: add -v to help text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/usage.src.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/include/usage.src.h b/include/usage.src.h
index 0053a7c..57c25a0 100644
--- a/include/usage.src.h
+++ b/include/usage.src.h
@@ -4467,8 +4467,13 @@ INSERT
#define tune2fs_full_usage "\n\n" \
"Adjust filesystem options on ext[23] filesystems"
+#if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 1
+# define IF_UDHCP_VERBOSE(...) __VA_ARGS__
+#else
+# define IF_UDHCP_VERBOSE(...)
+#endif
#define udhcpc_trivial_usage \
- "[-fbnqvoCR] [-i IFACE] [-r IP] [-s PROG] [-p PIDFILE]\n" \
+ "[-fbnq"IF_UDHCP_VERBOSE("v")"oCR] [-i IFACE] [-r IP] [-s PROG] [-p PIDFILE]\n" \
" [-H HOSTNAME] [-c CID] [-V VENDOR] [-O DHCP_OPT]..." IF_FEATURE_UDHCP_PORT(" [-P N]")
#define udhcpc_full_usage "\n" \
IF_LONG_OPTS( \
@@ -4501,6 +4506,9 @@ INSERT
"\n -V,--vendorclass VENDOR Vendor identifier (default 'udhcp VERSION')" \
"\n -c,--clientid CLIENTID Client identifier (default own MAC)" \
"\n -C,--clientid-none Don't send client identifier" \
+ IF_UDHCP_VERBOSE( \
+ "\n -v Verbose" \
+ ) \
) \
IF_NOT_LONG_OPTS( \
"\n -i IFACE Interface to use (default eth0)" \
@@ -4532,7 +4540,10 @@ INSERT
"\n -V VENDOR Vendor identifier (default 'udhcp VERSION')" \
"\n -c CLIENTID Client identifier (default own MAC)" \
"\n -C Don't send client identifier" \
- )
+ IF_UDHCP_VERBOSE( \
+ "\n -v Verbose" \
+ ) \
+ ) \
#define udhcpd_trivial_usage \
"[-fS]" IF_FEATURE_UDHCP_PORT(" [-P N]") " [configfile]" \