Mercurial > hg > toybox
diff lib/args.c @ 858:34ac05521d94
Move guts of help command into show_help() in lib/help.c, with config TOYBOX_HELP controlling infrastructure.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 14 Apr 2013 21:43:22 -0500 |
parents | 44ed476d5c87 |
children | 5735c500f835 |
line wrap: on
line diff
--- a/lib/args.c Sun Apr 14 12:35:25 2013 -0500 +++ b/lib/args.c Sun Apr 14 21:43:22 2013 -0500 @@ -341,7 +341,7 @@ // Option parsing is a two stage process: parse the option string into // a struct opts list, then use that list to process argv[]; - if (CFG_HELP) toys.exithelp++; + toys.exithelp++; // Allocate memory for optargs saveflags = 0; while (toys.argv[saveflags++]); @@ -437,7 +437,7 @@ gof.minargs, letters[!(gof.minargs-1)]); if (toys.optc>gof.maxargs) error_exit("Max %d argument%s", gof.maxargs, letters[!(gof.maxargs-1)]); - if (CFG_HELP) toys.exithelp = 0; + toys.exithelp = 0; if (CFG_TOYBOX_FREE) { llist_traverse(gof.opts, free);