From 26bf9e642eba4ea00cdf736d7ac4cd6be095a6af Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 12 Feb 2008 17:36:13 -0600 Subject: Add toys.optc, an argv-style count for toys.optargs. --- toys.h | 1 + 1 file changed, 1 insertion(+) (limited to 'toys.h') diff --git a/toys.h b/toys.h index 3c48fb81..f1f83c67 100644 --- a/toys.h +++ b/toys.h @@ -77,6 +77,7 @@ extern struct toy_context { 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; -- cgit v1.2.3