diff doc/gendoc.py @ 40291:170926caf44c

help: adding support for command categories Differential Revision: https://phab.mercurial-scm.org/D5065
author rdamazio@google.com
date Sat, 13 Oct 2018 05:03:50 -0700
parents ff874d34c856
children fabbf9310025
line wrap: on
line diff
--- a/doc/gendoc.py	Sun Oct 14 13:35:47 2018 +0200
+++ b/doc/gendoc.py	Sat Oct 13 05:03:50 2018 -0700
@@ -149,7 +149,8 @@
     helpprinter(ui, helptable + extrahelptable, None, include=[topic])
 
 def helpprinter(ui, helptable, sectionfunc, include=[], exclude=[]):
-    for names, sec, doc in helptable:
+    for h in helptable:
+        names, sec, doc = h[0:3]
         if exclude and names[0] in exclude:
             continue
         if include and names[0] not in include: