summaryrefslogtreecommitdiff
path: root/util-linux/getopt.c
diff options
context:
space:
mode:
authorDenys Vlasenko2016-11-23 11:46:32 +0100
committerDenys Vlasenko2016-11-23 11:46:32 +0100
commitdd898c9f3388fca1d7339a45150fbb7406de0971 (patch)
treef9f498c9d86c26bd208acc687c5f29b451927ce3 /util-linux/getopt.c
parente5dd71f94f8691c41382b89de35088695cca34b9 (diff)
downloadbusybox-dd898c9f3388fca1d7339a45150fbb7406de0971.zip
busybox-dd898c9f3388fca1d7339a45150fbb7406de0971.tar.gz
Convert all util-linux/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/getopt.c')
-rw-r--r--util-linux/getopt.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/util-linux/getopt.c b/util-linux/getopt.c
index 18d4909..83cc1ef 100644
--- a/util-linux/getopt.c
+++ b/util-linux/getopt.c
@@ -28,8 +28,28 @@
* Removed --version/-V and --help/-h
* Removed parse_error(), using bb_error_msg() from Busybox instead
* Replaced our_malloc with xmalloc and our_realloc with xrealloc
- *
*/
+//config:config GETOPT
+//config: bool "getopt"
+//config: default y
+//config: help
+//config: The getopt utility is used to break up (parse) options in command
+//config: lines to make it easy to write complex shell scripts that also check
+//config: for legal (and illegal) options. If you want to write horribly
+//config: complex shell scripts, or use some horribly complex shell script
+//config: written by others, this utility may be for you. Most people will
+//config: wisely leave this disabled.
+//config:
+//config:config FEATURE_GETOPT_LONG
+//config: bool "Support option -l"
+//config: default y if LONG_OPTS
+//config: depends on GETOPT
+//config: help
+//config: Enable support for long options (option -l).
+
+//applet:IF_GETOPT(APPLET(getopt, BB_DIR_BIN, BB_SUID_DROP))
+
+//kbuild:lib-$(CONFIG_GETOPT) += getopt.o
//usage:#define getopt_trivial_usage
//usage: "[OPTIONS] [--] OPTSTRING PARAMS"