Ashwini Sharma wrote: > On Wed, Sep 11, 2013 at 5:30 AM, Felix Janda <[email protected]> wrote: > > > Ashwini Sharma wrote: [...] > > > Didn't use show_help(), as this doesn't exit whereas an exit is intended > > > for route. > > > may be show_help() can be updated to do that. > > > > For this there is toys.exithelp. Set it to one and then call error_exit(). > > > > Yup, show_route_help, already does that. It was to be called many times, > hence made a function > show_route_help().
Oh, sorry for not looking at your patch. (Could you maybe get your MUA to produce text/x-patch attachments?) You're right it's called quite often. It seems that the command is doing argparsing in several places so that you can't just set toys.exithelp in the beginning and reset it when you're done with the argparsing. Felix _______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
