mercurial/commands.py
changeset 10339 23e608f42f2c
parent 10331 ec5240a22f4a
child 10340 2e9656d284cc
equal deleted inserted replaced
10333:b9e44cc97355 10339:23e608f42f2c
  1646     opt_output = []
  1646     opt_output = []
  1647     for title, options in option_lists:
  1647     for title, options in option_lists:
  1648         opt_output.append(("\n%s" % title, None))
  1648         opt_output.append(("\n%s" % title, None))
  1649         for shortopt, longopt, default, desc in options:
  1649         for shortopt, longopt, default, desc in options:
  1650             if _("DEPRECATED") in desc and not ui.verbose:
  1650             if _("DEPRECATED") in desc and not ui.verbose:
  1651                                continue
  1651                 continue
  1652             opt_output.append(("%2s%s" % (shortopt and "-%s" % shortopt,
  1652             opt_output.append(("%2s%s" % (shortopt and "-%s" % shortopt,
  1653                                           longopt and " --%s" % longopt),
  1653                                           longopt and " --%s" % longopt),
  1654                                "%s%s" % (desc,
  1654                                "%s%s" % (desc,
  1655                                          default
  1655                                          default
  1656                                          and _(" (default: %s)") % default
  1656                                          and _(" (default: %s)") % default