mercurial/commands.py
changeset 3519 5c57a5a17963
parent 3509 630e0b216192
child 3520 b0dc459cd06c
equal deleted inserted replaced
3518:f536d1019c8f 3519:5c57a5a17963
   561     # list all option lists
   561     # list all option lists
   562     opt_output = []
   562     opt_output = []
   563     for title, options in option_lists:
   563     for title, options in option_lists:
   564         opt_output.append(("\n%s:\n" % title, None))
   564         opt_output.append(("\n%s:\n" % title, None))
   565         for shortopt, longopt, default, desc in options:
   565         for shortopt, longopt, default, desc in options:
       
   566             if "DEPRECATED" in desc and not ui.verbose: continue
   566             opt_output.append(("%2s%s" % (shortopt and "-%s" % shortopt,
   567             opt_output.append(("%2s%s" % (shortopt and "-%s" % shortopt,
   567                                           longopt and " --%s" % longopt),
   568                                           longopt and " --%s" % longopt),
   568                                "%s%s" % (desc,
   569                                "%s%s" % (desc,
   569                                          default
   570                                          default
   570                                          and _(" (default: %s)") % default
   571                                          and _(" (default: %s)") % default