From 052ac46462beeed03a26ec97e56a368a8e1d7f25 Mon Sep 17 00:00:00 2001 From: vapier Date: Wed, 22 Feb 2006 22:56:30 +0000 Subject: document leading + option git-svn-id: svn://busybox.net/trunk/busybox@14216 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/getopt_ulflags.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libbb') 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 -- cgit v1.2.3-55-g6feb