OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
New option parsing infrastructure (doesn't use getopt). Hook it up to
[android-x86/external-toybox.git]
/
main.c
diff --git
a/main.c
b/main.c
index
89977f6
..
20f4cf4
100644
(file)
--- 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.