equal
deleted
inserted
replaced
3153 if ui.verbose: |
3153 if ui.verbose: |
3154 commands = cmds[f].replace("|",", ") |
3154 commands = cmds[f].replace("|",", ") |
3155 ui.write(" %s:\n %s\n"%(commands, h[f])) |
3155 ui.write(" %s:\n %s\n"%(commands, h[f])) |
3156 else: |
3156 else: |
3157 ui.write('%s\n' % (util.wrap(h[f], textwidth, |
3157 ui.write('%s\n' % (util.wrap(h[f], textwidth, |
3158 initindent=' %-*s ' % (m, f), |
3158 initindent=' %-*s ' % (m, f), |
3159 hangindent=' ' * (m + 4)))) |
3159 hangindent=' ' * (m + 4)))) |
3160 |
3160 |
3161 if not name: |
3161 if not name: |
3162 text = help.listexts(_('enabled extensions:'), extensions.enabled()) |
3162 text = help.listexts(_('enabled extensions:'), extensions.enabled()) |
3163 if text: |
3163 if text: |
3167 topics = [] |
3167 topics = [] |
3168 for names, header, doc in help.helptable: |
3168 for names, header, doc in help.helptable: |
3169 topics.append((sorted(names, key=len, reverse=True)[0], header)) |
3169 topics.append((sorted(names, key=len, reverse=True)[0], header)) |
3170 topics_len = max([len(s[0]) for s in topics]) |
3170 topics_len = max([len(s[0]) for s in topics]) |
3171 for t, desc in topics: |
3171 for t, desc in topics: |
3172 ui.write(" %-*s %s\n" % (topics_len, t, desc)) |
3172 ui.write(" %-*s %s\n" % (topics_len, t, desc)) |
3173 |
3173 |
3174 optlist = [] |
3174 optlist = [] |
3175 addglobalopts(optlist, True) |
3175 addglobalopts(optlist, True) |
3176 ui.write(opttext(optlist, textwidth)) |
3176 ui.write(opttext(optlist, textwidth)) |
3177 |
3177 |