diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-02-22 22:56:30 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-02-22 22:56:30 +0000 |
commit | 992a58c216b5426c82738f8590300807b38042b4 (patch) | |
tree | 6a5ddcf931a271e03db957e2d5c72c1a02b05c6b /libbb | |
parent | c6d09a627647cc7e337cde7652343485c4925a5a (diff) | |
download | busybox-992a58c216b5426c82738f8590300807b38042b4.tar.gz |
document leading + option
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/getopt_ulflags.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libbb/getopt_ulflags.c b/libbb/getopt_ulflags.c index bfd7aae7f..199147b76 100644 --- a/libbb/getopt_ulflags.c +++ b/libbb/getopt_ulflags.c @@ -69,6 +69,13 @@ bb_getopt_ulflags (int argc, char **argv, const char *applet_opts, ...) by the "::" special separator that is set in the external string bb_opt_complementally (see below for more info). + "+" If the first character in the applet_opts string is a plus, + then option processing will stop as soon as a non-option is + encountered in the argv array. Useful for applets like env + which should not process arguments to subprograms: + env -i ls -d / + Here we want env to process just the '-i', not the '-d'. + static const struct option bb_default_long_options[] This struct allows you to define long options. The syntax for |