##// END OF EJS Templates
Catch the exception raised with 'hg help <somethingambiguous>'....
Thomas Arendsen Hein -
r1536:b4ed8252 default
parent child Browse files
Show More
@@ -2640,6 +2640,9 b' def dispatch(args):'
2640 u.debug(inst, "\n")
2640 u.debug(inst, "\n")
2641 u.warn(_("%s: invalid arguments\n") % cmd)
2641 u.warn(_("%s: invalid arguments\n") % cmd)
2642 help_(u, cmd)
2642 help_(u, cmd)
2643 except AmbiguousCommand, inst:
2644 u.warn(_("hg: command '%s' is ambiguous.\n") % inst.args[0])
2645 help_(u, 'shortlist')
2643 except UnknownCommand, inst:
2646 except UnknownCommand, inst:
2644 u.warn(_("hg: unknown command '%s'\n") % inst.args[0])
2647 u.warn(_("hg: unknown command '%s'\n") % inst.args[0])
2645 help_(u, 'shortlist')
2648 help_(u, 'shortlist')
General Comments 0
You need to be logged in to leave comments. Login now