mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
dispatch: add pagination of two more help cases
I missed these in the last round anf Yuya spotted them in review. Thanks!
This commit is contained in:
parent
d60f4a3869
commit
7405058a22
@ -234,9 +234,11 @@ def callcatch(ui, func):
|
||||
(inst.args[0], " ".join(inst.args[1])))
|
||||
except error.CommandError as inst:
|
||||
if inst.args[0]:
|
||||
ui.pager('help')
|
||||
ui.warn(_("hg %s: %s\n") % (inst.args[0], inst.args[1]))
|
||||
commands.help_(ui, inst.args[0], full=False, command=True)
|
||||
else:
|
||||
ui.pager('help')
|
||||
ui.warn(_("hg: %s\n") % inst.args[1])
|
||||
commands.help_(ui, 'shortlist')
|
||||
except error.ParseError as inst:
|
||||
|
Loading…
Reference in New Issue
Block a user