qrebase extension
Patrick Mézard
pmezard at gmail.com
Wed May 14 15:19:24 CDT 2008
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
More information about the Mercurial
mailing list