[BusyBox] Upcoming changes....

Marc Nijdam marc_nijdam at hp.com
Fri Jun 30 22:20:05 UTC 2000


andersen at lineo.com wrote:
> 
> 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;

Don't mind the last, but I'm not sure how much value min and max_args
add to the overall scheme.

> 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.

Cool..

> 3) busybox_main() will now handle "--help" and "--version".

OK

> 4) busybox_main() will now define a global variable that will define
>     the name of the app that was called.

That'd be useful.

> 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.

Yes

> 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.

Yep, I hope to be doing a couple of those this weekend (GNU getopt)

> 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.

Extremely useful!

> Sound ok to everyone?

Faster, faster ;-)

Marc





More information about the busybox mailing list