changeset 15128:aaf666bd2942

help: move option list display into subfunctions
author Matt Mackall <mpm@selenic.com>
date Sat, 17 Sep 2011 14:50:42 -0500
parents 2c80862728cb
children 9b904d679850
files mercurial/commands.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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', '',