comparison mercurial/dispatch.py @ 14286:005a540e9aee

help: add -c/--command flag to only show command help (issue2799)
author Martin Geisler <mg@aragost.com>
date Tue, 10 May 2011 14:42:53 +0200
parents e4ab5ae193f2
children 08bfec2ef031
comparison
equal deleted inserted replaced
14285:aa64a87b493d 14286:005a540e9aee
88 ui.warn(_("abort: could not lock %s: %s\n") % 88 ui.warn(_("abort: could not lock %s: %s\n") %
89 (inst.desc or inst.filename, inst.strerror)) 89 (inst.desc or inst.filename, inst.strerror))
90 except error.CommandError, inst: 90 except error.CommandError, inst:
91 if inst.args[0]: 91 if inst.args[0]:
92 ui.warn(_("hg %s: %s\n") % (inst.args[0], inst.args[1])) 92 ui.warn(_("hg %s: %s\n") % (inst.args[0], inst.args[1]))
93 commands.help_(ui, inst.args[0], full=False) 93 commands.help_(ui, inst.args[0], full=False, command=True)
94 else: 94 else:
95 ui.warn(_("hg: %s\n") % inst.args[1]) 95 ui.warn(_("hg: %s\n") % inst.args[1])
96 commands.help_(ui, 'shortlist') 96 commands.help_(ui, 'shortlist')
97 except error.RepoError, inst: 97 except error.RepoError, inst:
98 ui.warn(_("abort: %s!\n") % inst) 98 ui.warn(_("abort: %s!\n") % inst)