[Toybox] - Add route

Felix Janda felix.janda at posteo.de
Wed Sep 11 09:37:39 PDT 2013


Ashwini Sharma wrote:
> On Wed, Sep 11, 2013 at 5:30 AM, Felix Janda <felix.janda at posteo.de> 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

 1378917459.0


More information about the Toybox mailing list