getopt: FEATURE_GETOPT_LONG for -l; rename GETOPT_LONG to LONG_OPTS
Signed-off-by: Colin Watson <cjwatson@ubuntu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -132,7 +132,7 @@ config FTPPUT
|
||||
config FEATURE_FTPGETPUT_LONG_OPTIONS
|
||||
bool "Enable long options in ftpget/ftpput"
|
||||
default n
|
||||
depends on GETOPT_LONG && (FTPGET || FTPPUT)
|
||||
depends on LONG_OPTS && (FTPGET || FTPPUT)
|
||||
help
|
||||
Support long options for the ftpget/ftpput applet.
|
||||
|
||||
@@ -578,7 +578,7 @@ config FEATURE_IPCALC_FANCY
|
||||
config FEATURE_IPCALC_LONG_OPTIONS
|
||||
bool "Enable long options"
|
||||
default n
|
||||
depends on IPCALC && GETOPT_LONG
|
||||
depends on IPCALC && LONG_OPTS
|
||||
help
|
||||
Support long options for the ipcalc applet.
|
||||
|
||||
@@ -910,7 +910,7 @@ config FEATURE_WGET_AUTHENTICATION
|
||||
config FEATURE_WGET_LONG_OPTIONS
|
||||
bool "Enable long options"
|
||||
default n
|
||||
depends on WGET && GETOPT_LONG
|
||||
depends on WGET && LONG_OPTS
|
||||
help
|
||||
Support long options for the wget applet.
|
||||
|
||||
|
||||
@@ -457,7 +457,7 @@ int ifenslave_main(int argc UNUSED_PARAM, char **argv)
|
||||
OPT_d = (1 << 1),
|
||||
OPT_f = (1 << 2),
|
||||
};
|
||||
#if ENABLE_GETOPT_LONG
|
||||
#if ENABLE_LONG_OPTS
|
||||
static const char ifenslave_longopts[] ALIGN1 =
|
||||
"change-active\0" No_argument "c"
|
||||
"detach\0" No_argument "d"
|
||||
|
||||
@@ -152,7 +152,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
|
||||
struct dhcp_packet packet;
|
||||
fd_set rfds;
|
||||
|
||||
#if ENABLE_GETOPT_LONG
|
||||
#if ENABLE_LONG_OPTS
|
||||
static const char udhcpc_longopts[] ALIGN1 =
|
||||
"clientid\0" Required_argument "c"
|
||||
"clientid-none\0" No_argument "C"
|
||||
@@ -223,7 +223,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
|
||||
":vv"
|
||||
#endif
|
||||
;
|
||||
IF_GETOPT_LONG(applet_long_options = udhcpc_longopts;)
|
||||
IF_LONG_OPTS(applet_long_options = udhcpc_longopts;)
|
||||
opt = getopt32(argv, "c:CV:H:h:F:i:np:qRr:s:T:t:SA:O:of"
|
||||
USE_FOR_MMU("b")
|
||||
IF_FEATURE_UDHCPC_ARPING("a")
|
||||
|
||||
@@ -33,7 +33,7 @@ int dumpleases_main(int argc UNUSED_PARAM, char **argv)
|
||||
OPT_r = 0x2, // -r
|
||||
OPT_f = 0x4, // -f
|
||||
};
|
||||
#if ENABLE_GETOPT_LONG
|
||||
#if ENABLE_LONG_OPTS
|
||||
static const char dumpleases_longopts[] ALIGN1 =
|
||||
"absolute\0" No_argument "a"
|
||||
"remaining\0" No_argument "r"
|
||||
|
||||
Reference in New Issue
Block a user