Show More
@@ -1432,11 +1432,13 b' def help_(ui, name=None, with_version=Fa' | |||||
1432 | and _(" (default: %s)") % default |
|
1432 | and _(" (default: %s)") % default | |
1433 | or ""))) |
|
1433 | or ""))) | |
1434 |
|
1434 | |||
1435 | if ui.verbose: |
|
1435 | if not name: | |
1436 | ui.write(_("\nspecial help topics:\n")) |
|
1436 | ui.write(_("\nspecial help topics:\n\n")) | |
1437 | topics = [] |
|
1437 | topics = [] | |
1438 | for names, header, doc in help.helptable: |
|
1438 | for names, header, doc in help.helptable: | |
1439 | topics.append((", ".join(names), header)) |
|
1439 | names = [(-len(name), name) for name in names] | |
|
1440 | names.sort() | |||
|
1441 | topics.append((names[0][1], header)) | |||
1440 | topics_len = max([len(s[0]) for s in topics]) |
|
1442 | topics_len = max([len(s[0]) for s in topics]) | |
1441 | for t, desc in topics: |
|
1443 | for t, desc in topics: | |
1442 | ui.write(" %-*s %s\n" % (topics_len, t, desc)) |
|
1444 | ui.write(" %-*s %s\n" % (topics_len, t, desc)) |
General Comments 0
You need to be logged in to leave comments.
Login now