mercurial/help.py
changeset 41009 fcc0a7ac9ebd
parent 40955 f6187e60f792
child 41010 e8e2a7656e83
equal deleted inserted replaced
41008:e5d37558098a 41009:fcc0a7ac9ebd
   158 
   158 
   159         so = ''
   159         so = ''
   160         if shortopt:
   160         if shortopt:
   161             so = '-' + shortopt
   161             so = '-' + shortopt
   162         lo = '--' + longopt
   162         lo = '--' + longopt
   163         if isinstance(default, bool):
   163         if default is True:
   164             lo = '--[no-]' + longopt
   164             lo = '--[no-]' + longopt
   165 
   165 
   166         if isinstance(default, fancyopts.customopt):
   166         if isinstance(default, fancyopts.customopt):
   167             default = default.getdefaultvalue()
   167             default = default.getdefaultvalue()
   168         if (default and not callable(default)) or default is False:
   168         if (default and not callable(default)) or default is False: