diff options
author | Rob Landley <rob@landley.net> | 2013-09-01 07:50:32 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-09-01 07:50:32 -0500 |
commit | b7162a47e71a69e30bb9103b5caae72e5097f68f (patch) | |
tree | bebe96c75bc437365ca06ee5ef2120850aeda4b8 /toys/other | |
parent | c166faf9c14b377f7005d97abd4f0658b3bbc7ce (diff) | |
download | toybox-b7162a47e71a69e30bb9103b5caae72e5097f68f.tar.gz |
Improve --longopt parsing: general bugfixes, better error reporting, new ; option for optional arguments only suppliable with =.
Diffstat (limited to 'toys/other')
-rw-r--r-- | toys/other/hello.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toys/other/hello.c b/toys/other/hello.c index a6bc69eb..e87cd6c9 100644 --- a/toys/other/hello.c +++ b/toys/other/hello.c @@ -7,7 +7,7 @@ // Accept many different kinds of command line argument: -USE_HELLO(NEWTOY(hello, "(walrus)(blubber):e@d*c#b:a", TOYFLAG_USR|TOYFLAG_BIN)) +USE_HELLO(NEWTOY(hello, "(walrus)(blubber):;(also):e@d*c#b:a", TOYFLAG_USR|TOYFLAG_BIN)) config HELLO bool "hello" @@ -31,6 +31,7 @@ GLOBALS( long c_number; struct arg_list *d_list; long e_count; + char *also_string; char *blubber_string; int more_globals; |