udhcpc: show only short opts in --help text
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 29 Aug 2017 14:51:17 +0000 (16:51 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 29 Aug 2017 14:51:17 +0000 (16:51 +0200)
function                                             old     new   delta
packed_usage                                       31615   31501    -114

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/udhcp/dhcpc.c

index 55e0400b94118b7c8385ee9ef2ef7c9178982a26..99d91bf70bd31918590c4a19d6d88542cafdec64 100644 (file)
@@ -1183,44 +1183,6 @@ static void client_background(void)
 //usage:       "       [-i IFACE]"IF_FEATURE_UDHCP_PORT(" [-P PORT]")" [-s PROG] [-p PIDFILE]\n"
 //usage:       "       [-oC] [-r IP] [-V VENDOR] [-F NAME] [-x OPT:VAL]... [-O OPT]..."
 //usage:#define udhcpc_full_usage "\n"
-//usage:       IF_LONG_OPTS(
-//usage:     "\n       -i,--interface IFACE    Interface to use (default eth0)"
-//usage:       IF_FEATURE_UDHCP_PORT(
-//usage:     "\n       -P,--client-port PORT   Use PORT (default 68)"
-//usage:       )
-//usage:     "\n       -s,--script PROG        Run PROG at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")"
-//usage:     "\n       -p,--pidfile FILE       Create pidfile"
-//usage:     "\n       -B,--broadcast          Request broadcast replies"
-//usage:     "\n       -t,--retries N          Send up to N discover packets (default 3)"
-//usage:     "\n       -T,--timeout SEC        Pause between packets (default 3)"
-//usage:     "\n       -A,--tryagain SEC       Wait if lease is not obtained (default 20)"
-//usage:     "\n       -n,--now                Exit if lease is not obtained"
-//usage:     "\n       -q,--quit               Exit after obtaining lease"
-//usage:     "\n       -R,--release            Release IP on exit"
-//usage:     "\n       -f,--foreground         Run in foreground"
-//usage:       USE_FOR_MMU(
-//usage:     "\n       -b,--background         Background if lease is not obtained"
-//usage:       )
-//usage:     "\n       -S,--syslog             Log to syslog too"
-//usage:       IF_FEATURE_UDHCPC_ARPING(
-//usage:     "\n       -a[MSEC],--arping[=MSEC] Validate offered address with ARP ping"
-//usage:       )
-//usage:     "\n       -r,--request IP         Request this IP address"
-//usage:     "\n       -o,--no-default-options Don't request any options (unless -O is given)"
-//usage:     "\n       -O,--request-option OPT Request option OPT from server (cumulative)"
-//usage:     "\n       -x OPT:VAL              Include option OPT in sent packets (cumulative)"
-//usage:     "\n                               Examples of string, numeric, and hex byte opts:"
-//usage:     "\n                               -x hostname:bbox - option 12"
-//usage:     "\n                               -x lease:3600 - option 51 (lease time)"
-//usage:     "\n                               -x 0x3d:0100BEEFC0FFEE - option 61 (client id)"
-//usage:     "\n       -F,--fqdn NAME          Ask server to update DNS mapping for NAME"
-//usage:     "\n       -V,--vendorclass VENDOR Vendor identifier (default 'udhcp VERSION')"
-//usage:     "\n       -C,--clientid-none      Don't send MAC as client identifier"
-//usage:       IF_UDHCP_VERBOSE(
-//usage:     "\n       -v                      Verbose"
-//usage:       )
-//usage:       )
-//usage:       IF_NOT_LONG_OPTS(
 //usage:     "\n       -i IFACE        Interface to use (default eth0)"
 //usage:       IF_FEATURE_UDHCP_PORT(
 //usage:     "\n       -P PORT         Use PORT (default 68)"
@@ -1256,7 +1218,6 @@ static void client_background(void)
 //usage:       IF_UDHCP_VERBOSE(
 //usage:     "\n       -v              Verbose"
 //usage:       )
-//usage:       )
 //usage:     "\nSignals:"
 //usage:     "\n       USR1    Renew lease"
 //usage:     "\n       USR2    Release lease"