diff options
author | Rob Landley <rob@landley.net> | 2006-11-19 02:49:22 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-11-19 02:49:22 -0500 |
commit | 8324b89598b2aee0957a0378f0f63ff5755498be (patch) | |
tree | 6958c34834147ab29607a8e67aca2b05a751f2ee /main.c | |
parent | b29ceb8bd0f99134fe215eebc531dbcd7717e8ae (diff) | |
download | toybox-8324b89598b2aee0957a0378f0f63ff5755498be.tar.gz |
New option parsing infrastructure (doesn't use getopt). Hook it up to
existing applets. Still a bit buggy, but bits of it work.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -51,6 +51,7 @@ void toy_init(struct toy_list *which, char *argv[]) toys.which = which; toys.argv = argv; toys.exitval = 1; + if (which->options) get_optflags(); } // Run a toy. |