aboutsummaryrefslogtreecommitdiff
path: root/toys/other/hello.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-09-01 07:50:32 -0500
committerRob Landley <rob@landley.net>2013-09-01 07:50:32 -0500
commitb7162a47e71a69e30bb9103b5caae72e5097f68f (patch)
treebebe96c75bc437365ca06ee5ef2120850aeda4b8 /toys/other/hello.c
parentc166faf9c14b377f7005d97abd4f0658b3bbc7ce (diff)
downloadtoybox-b7162a47e71a69e30bb9103b5caae72e5097f68f.tar.gz
Improve --longopt parsing: general bugfixes, better error reporting, new ; option for optional arguments only suppliable with =.
Diffstat (limited to 'toys/other/hello.c')
-rw-r--r--toys/other/hello.c3
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;