[BusyBox] Upcoming changes....
Erik Andersen
andersen at lineo.com
Fri Jun 30 17:59:01 UTC 2000
This is a bit of a RFC. In the upcoming days I plan on making the following
changes. Please comment now if you disapprove, otherwise these changes will
all be going forward. And of course everyone is invited (encouraged!) to help.
1) struct BB_applet in internal.h will be getting a few new members:
int min_args;
int max_args;
char* help_sting;
2) busybox_main() will now check for if the right number of options
were passed in or not, and if needed print s suitable error msg.
3) busybox_main() will now handle "--help" and "--version".
4) busybox_main() will now define a global variable that will define
the name of the app that was called.
5) All usage/help strings will be moved to a common file (perhaps
helpstrings.c). This will have the side effect of helping
out any future attempts at i18n.
6) All apps will migrate to using getopt for option parsing. Those
that need to handle long options (i.e. tar, rm, ln) will use
getopt to match "-" and then use strcmps and needed.
7) All apps will have any now-redundant argument bounds checking
removed.
8) All printed text strings should be removed from apps, merged
into messages.c, and redundant strings eliminated (which will
also help any future attempts at i18n.
Sound ok to everyone?
-Erik
--
Erik B. Andersen email: andersen at lineo.com
--This message was written using 73% post-consumer electrons--
More information about the busybox
mailing list