From b7162a47e71a69e30bb9103b5caae72e5097f68f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 1 Sep 2013 07:50:32 -0500 Subject: Improve --longopt parsing: general bugfixes, better error reporting, new ; option for optional arguments only suppliable with =. --- toys/other/hello.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toys/other') 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; -- cgit v1.2.3