commit | 26bf9e642eba4ea00cdf736d7ac4cd6be095a6af | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Tue Feb 12 17:36:13 2008 -0600 |
committer | Rob Landley <rob@landley.net> | Tue Feb 12 17:36:13 2008 -0600 |
tree | fbe81a228562910fc1eeac79e6f07e521cc097f0 | |
parent | 0a521a217d7f1de33a56d75694ed7b8160f7874c [diff] [blame] |
Add toys.optc, an argv-style count for toys.optargs.
diff --git a/toys.h b/toys.h index 3c48fb8..f1f83c6 100644 --- a/toys.h +++ b/toys.h
@@ -77,6 +77,7 @@ char **argv; // Original command line arguments unsigned optflags; // Command line option flags from get_optflags() char **optargs; // Arguments left over from get_optflags() + int optc; // Count of optargs int exithelp; // Should error_exit print a usage message first? (Option parsing.) } toys;