# HG changeset patch # User Matt Mackall # Date 1316289042 18000 # Node ID aaf666bd29420ba4a6041a7585a5c68c4e54b8d2 # Parent 2c80862728cb415018fa4c2754926cae34d828ed help: move option list display into subfunctions diff -r 2c80862728cb -r aaf666bd2942 mercurial/commands.py --- a/mercurial/commands.py Sat Sep 17 14:46:13 2011 -0500 +++ b/mercurial/commands.py Sat Sep 17 14:50:42 2011 -0500 @@ -2805,6 +2805,8 @@ except KeyError: pass + ui.write(opttext(optlist, textwidth)) + def helplist(select=None): # list of commands if name == "shortlist": @@ -2867,6 +2869,8 @@ for t, desc in topics: ui.write(" %-*s %s\n" % (topics_len, t, desc)) + ui.write(opttext(optlist, textwidth)) + def helptopic(name): for names, header, doc in help.helptable: if name in names: @@ -2955,7 +2959,6 @@ ui.status('\n') helplist() - ui.write(opttext(optlist, textwidth)) @command('identify|id', [('r', 'rev', '',