From 36aa7d7382f64695ef003e5616890188b9f1f61b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 28 Mar 2014 17:48:02 -0500 Subject: Add help -a (to show all commands) and -h (to produce HTML output). --- toys.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'toys.h') diff --git a/toys.h b/toys.h index 8450b803..cd1755b6 100644 --- a/toys.h +++ b/toys.h @@ -115,14 +115,15 @@ extern struct toy_list { extern struct toy_context { struct toy_list *which; // Which entry in toy_list is this one? - int exitval; // Value error_exit feeds to exit() char **argv; // Original command line arguments - unsigned optflags; // Command line option flags from get_optflags() char **optargs; // Arguments left over from get_optflags() + jmp_buf *rebound; // longjmp here instead of exit when do_rebound set + unsigned optflags; // Command line option flags from get_optflags() + int exitval; // Value error_exit feeds to exit() int optc; // Count of optargs int exithelp; // Should error_exit print a usage message first? int old_umask; // Old umask preserved by TOYFLAG_UMASK - jmp_buf *rebound; // longjmp here instead of exit when do_rebound set + int toycount; // Total number of commands in this build } toys; // Two big temporary buffers: one for use by commands, one for library functions -- cgit v1.2.3