qrebase extension
Gilles Moris
gilles.moris at free.fr
Thu May 15 01:55:29 CDT 2008
On Wed May 14 2008 22:19:24 Patrick Mézard wrote:
> Gilles Moris a écrit :
> > On Wed May 7 2008 19:07:37 Matt Mackall wrote:
> > However, I have looked at the config module and it seems even more
> > easier to do it with
> > ui.configbool('qrebase', 'backup', True)
> > and it has a much better control of the boolean strings (True/False,
> > YES/NO, on/off). Is there an equivalent standard / mercurial function
> > for command line arguments ?
>
> Not sure I understand what you want but command arguments are parsed in fancyopts automatically. Their type is defined in the command table declaration, parameters with default value set to None or a boolean will be set to True when passed to the command line.
>
> --
> Patrick Mézard
>
Forget about it, that was a stupid question.
I was looking at something like: --option False
But obviously, as you said, the presence of the option is just sufficient to be
equivalent to True, and the absence to False, so there is no need for an
additional argument value.
Thanks for your answer.
Gilles.
More information about the Mercurial
mailing list