mercurial/help.py
changeset 45679 65e2b64670b5
parent 45641 65cb924a1430
child 45942 89a2afe31e82
--- a/mercurial/help.py	Tue Oct 06 20:37:35 2020 -0700
+++ b/mercurial/help.py	Tue Oct 06 20:45:52 2020 -0700
@@ -713,7 +713,7 @@
         except error.AmbiguousCommand as inst:
             # py3 fix: except vars can't be used outside the scope of the
             # except block, nor can be used inside a lambda. python issue4617
-            prefix = inst.args[0]
+            prefix = inst.prefix
             select = lambda c: cmdutil.parsealiases(c)[0].startswith(prefix)
             rst = helplist(select)
             return rst