aboutsummaryrefslogtreecommitdiff
path: root/toys.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-03-28 17:48:02 -0500
committerRob Landley <rob@landley.net>2014-03-28 17:48:02 -0500
commit36aa7d7382f64695ef003e5616890188b9f1f61b (patch)
tree5ca460327629086457f333aa5364c11dbf6ff0e1 /toys.h
parente9a41fc5ae51ccf7bd5677773bfe72d01f06b3cd (diff)
downloadtoybox-36aa7d7382f64695ef003e5616890188b9f1f61b.tar.gz
Add help -a (to show all commands) and -h (to produce HTML output).
Diffstat (limited to 'toys.h')
-rw-r--r--toys.h7
1 files changed, 4 insertions, 3 deletions
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