diff options
-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 f620812fa..5ed9c2e70 100644 --- a/libbb/getopt_ulflags.c +++ b/libbb/getopt_ulflags.c | |||
@@ -111,7 +111,8 @@ const char *bb_opt_complementally | |||
111 | found. | 111 | found. |
112 | 112 | ||
113 | "ww" Adjacent double options have a counter associated which indicates | 113 | "ww" Adjacent double options have a counter associated which indicates |
114 | the number of occurances of the option. For example the ps applet needs: | 114 | the number of occurances of the option. |
115 | For example the ps applet needs: | ||
115 | if w is given once, GNU ps sets the width to 132, | 116 | if w is given once, GNU ps sets the width to 132, |
116 | if w is given more than once, it is "unlimited" | 117 | if w is given more than once, it is "unlimited" |
117 | 118 | ||
@@ -170,11 +171,11 @@ Special characters: | |||
170 | convert the arguments as option. | 171 | convert the arguments as option. |
171 | For example: | 172 | For example: |
172 | 173 | ||
173 | bb_opt_complementally = "-:w"; | 174 | bb_opt_complementally = "-:w-x:x-w"; |
174 | bb_getopt_ulflags(argc, argv, "w"); | 175 | bb_getopt_ulflags(argc, argv, "wx"); |
175 | 176 | ||
176 | Allows option 'w' to be given without a dash (./program w) | 177 | Allows option 'w' to be given without a dash (./program w x) |
177 | as well as with a dash (./program -w). | 178 | as well as with a dash (./program -x). |
178 | 179 | ||
179 | "~" A tilde between two options, or between an option and a group | 180 | "~" A tilde between two options, or between an option and a group |
180 | of options, means that they are mutually exclusive. Unlike | 181 | of options, means that they are mutually exclusive. Unlike |