equal
deleted
inserted
replaced
1549 commands = cmds[f].replace("|",", ") |
1549 commands = cmds[f].replace("|",", ") |
1550 ui.write(" %s:\n %s\n"%(commands, h[f])) |
1550 ui.write(" %s:\n %s\n"%(commands, h[f])) |
1551 else: |
1551 else: |
1552 ui.write(' %-*s %s\n' % (m, f, util.wrap(h[f], m + 4))) |
1552 ui.write(' %-*s %s\n' % (m, f, util.wrap(h[f], m + 4))) |
1553 |
1553 |
1554 if name != 'shortlist': |
|
1555 exts, maxlength = extensions.enabled() |
|
1556 text = help.listexts(_('enabled extensions:'), exts, maxlength) |
|
1557 if text: |
|
1558 ui.write("\n%s\n" % minirst.format(text, textwidth)) |
|
1559 |
|
1560 if not ui.quiet: |
1554 if not ui.quiet: |
1561 addglobalopts(True) |
1555 addglobalopts(True) |
1562 |
1556 |
1563 def helptopic(name): |
1557 def helptopic(name): |
1564 for names, header, doc in help.helptable: |
1558 for names, header, doc in help.helptable: |
1625 header = _('basic commands:\n\n') |
1619 header = _('basic commands:\n\n') |
1626 else: |
1620 else: |
1627 header = _('list of commands:\n\n') |
1621 header = _('list of commands:\n\n') |
1628 |
1622 |
1629 helplist(header) |
1623 helplist(header) |
|
1624 if name != 'shortlist': |
|
1625 exts, maxlength = extensions.enabled() |
|
1626 text = help.listexts(_('enabled extensions:'), exts, maxlength) |
|
1627 if text: |
|
1628 ui.write("\n%s\n" % minirst.format(text, textwidth)) |
1630 |
1629 |
1631 # list all option lists |
1630 # list all option lists |
1632 opt_output = [] |
1631 opt_output = [] |
1633 for title, options in option_lists: |
1632 for title, options in option_lists: |
1634 opt_output.append(("\n%s" % title, None)) |
1633 opt_output.append(("\n%s" % title, None)) |