commit | 8324b89598b2aee0957a0378f0f63ff5755498be | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Sun Nov 19 02:49:22 2006 -0500 |
committer | Rob Landley <rob@landley.net> | Sun Nov 19 02:49:22 2006 -0500 |
tree | 6958c34834147ab29607a8e67aca2b05a751f2ee | |
parent | b29ceb8bd0f99134fe215eebc531dbcd7717e8ae [diff] [blame] |
New option parsing infrastructure (doesn't use getopt). Hook it up to existing applets. Still a bit buggy, but bits of it work.
diff --git a/main.c b/main.c index 89977f6..20f4cf4 100644 --- a/main.c +++ b/main.c
@@ -51,6 +51,7 @@ toys.which = which; toys.argv = argv; toys.exitval = 1; + if (which->options) get_optflags(); } // Run a toy.