aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-21 00:50:37 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-21 00:50:37 +0000
commit57f4cb2867cf7e1d1b51a2c7b0dc789ba7a94e27 (patch)
tree6e453cb759ef5d1158515308362f66acb396a07f
parente17c80e60410c0f90896b62d2759ca46c045da57 (diff)
downloadbusybox-w32-57f4cb2867cf7e1d1b51a2c7b0dc789ba7a94e27.tar.gz
busybox-w32-57f4cb2867cf7e1d1b51a2c7b0dc789ba7a94e27.tar.bz2
busybox-w32-57f4cb2867cf7e1d1b51a2c7b0dc789ba7a94e27.zip
a few more comment touchups
-rw-r--r--libbb/getopt_ulflags.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libbb/getopt_ulflags.c b/libbb/getopt_ulflags.c
index d8919abca..bfd7aae7f 100644
--- a/libbb/getopt_ulflags.c
+++ b/libbb/getopt_ulflags.c
@@ -92,6 +92,8 @@ static const struct option bb_default_long_options[]
92 is to name the config option CONFIG_FEATURE_<applet>_LONG_OPTIONS. 92 is to name the config option CONFIG_FEATURE_<applet>_LONG_OPTIONS.
93 93
94const char *bb_opt_complementally 94const char *bb_opt_complementally
95 this should be bb_opt_complementary, but we'll just keep it as
96 bb_opt_complementally due to the Russian origins
95 97
96 ":" The colon (":") is used to separate groups of two or more chars 98 ":" The colon (":") is used to separate groups of two or more chars
97 and/or groups of chars and special characters (stating some 99 and/or groups of chars and special characters (stating some
@@ -170,7 +172,7 @@ Special characters:
170 printf("Detected odd -x usaging\n"); 172 printf("Detected odd -x usaging\n");
171 173
172 "-" A dash as the first char in a bb_opt_complementally group means to 174 "-" A dash as the first char in a bb_opt_complementally group means to
173 convert the arguments as option. Next char for this case can`t set 175 convert the arguments as option. Next char for this case can't set
174 [0-9], recomended use ':' or end of line. For example: 176 [0-9], recomended use ':' or end of line. For example:
175 177
176 bb_opt_complementally = "-:w-x:x-w"; 178 bb_opt_complementally = "-:w-x:x-w";
@@ -204,8 +206,8 @@ Special characters:
204 bb_show_usage(); 206 bb_show_usage();
205 207
206 "?" A "ask" as the first char in a bb_opt_complementally group give: 208 "?" A "ask" as the first char in a bb_opt_complementally group give:
207 if previous point set BB_GETOPT_ERROR, don`t return and 209 if previous point set BB_GETOPT_ERROR, don't return and
208 call previous example internally. Next char for this case can`t 210 call previous example internally. Next char for this case can't
209 set to [0-9], recomended use ':' or end of line. 211 set to [0-9], recomended use ':' or end of line.
210 212
211 "?N" A "ask" as the first char in a bb_opt_complementally group with 213 "?N" A "ask" as the first char in a bb_opt_complementally group with
@@ -259,7 +261,7 @@ Special characters:
259 261
260 "x--x" give error if double or more used -x option 262 "x--x" give error if double or more used -x option
261 263
262 Don`t forget ':' store. For example "?322-22-23X-x-a" interpretet as 264 Don't forget ':' store. For example "?322-22-23X-x-a" interpretet as
263 "?3:22:-2:2-2:2-3Xa:2--x": max args is 3, count -2 usaged, min args is 2, 265 "?3:22:-2:2-2:2-3Xa:2--x": max args is 3, count -2 usaged, min args is 2,
264 -2 option triggered, unset -3 and -X and -a if -2 any usaged, give error if 266 -2 option triggered, unset -3 and -X and -a if -2 any usaged, give error if
265 after -2 the -x option usaged. 267 after -2 the -x option usaged.