diff options
author | "Vladimir N. Oleynik" | 2005-10-05 12:44:52 +0000 |
---|---|---|
committer | "Vladimir N. Oleynik" | 2005-10-05 12:44:52 +0000 |
commit | d1b6078e5d614993de2a858e85f1dc06cfe5539b (patch) | |
tree | 20b5b468768d02044b66176687cbf922ad912c81 /libbb | |
parent | 120513c29f64ffae4738ae1cb69eaab94a3d178f (diff) | |
download | busybox-d1b6078e5d614993de2a858e85f1dc06cfe5539b.zip busybox-d1b6078e5d614993de2a858e85f1dc06cfe5539b.tar.gz |
more correction for getopt_ulflags() documentation by author of this fuck logic
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/getopt_ulflags.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libbb/getopt_ulflags.c b/libbb/getopt_ulflags.c index f620812..5ed9c2e 100644 --- a/libbb/getopt_ulflags.c +++ b/libbb/getopt_ulflags.c @@ -111,7 +111,8 @@ const char *bb_opt_complementally found. "ww" Adjacent double options have a counter associated which indicates - the number of occurances of the option. For example the ps applet needs: + the number of occurances of the option. + For example the ps applet needs: if w is given once, GNU ps sets the width to 132, if w is given more than once, it is "unlimited" @@ -170,11 +171,11 @@ Special characters: convert the arguments as option. For example: - bb_opt_complementally = "-:w"; - bb_getopt_ulflags(argc, argv, "w"); + bb_opt_complementally = "-:w-x:x-w"; + bb_getopt_ulflags(argc, argv, "wx"); - Allows option 'w' to be given without a dash (./program w) - as well as with a dash (./program -w). + Allows option 'w' to be given without a dash (./program w x) + as well as with a dash (./program -x). "~" A tilde between two options, or between an option and a group of options, means that they are mutually exclusive. Unlike |