summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-11-19 02:49:22 -0500
committerRob Landley <rob@landley.net>2006-11-19 02:49:22 -0500
commit8324b89598b2aee0957a0378f0f63ff5755498be (patch)
tree6958c34834147ab29607a8e67aca2b05a751f2ee /main.c
parentb29ceb8bd0f99134fe215eebc531dbcd7717e8ae (diff)
downloadtoybox-8324b89598b2aee0957a0378f0f63ff5755498be.tar.gz
toybox-8324b89598b2aee0957a0378f0f63ff5755498be.tar.bz2
toybox-8324b89598b2aee0957a0378f0f63ff5755498be.zip
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 89977f6..20f4cf4 100644
--- a/main.c
+++ b/main.c
@@ -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.