# HG changeset patch # User Martin Geisler # Date 2010-02-13 17:36:24 # Node ID 8b45102934e2b2277b60725fd594e10384d3f37c # Parent e99e0e077bc47b9df35407ab162f9ec5c27905a9 commands: support verbose help diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1527,7 +1527,11 @@ def help_(ui, name=None, with_version=Fa doc = _("(no help text available)") if ui.quiet: doc = doc.splitlines()[0] - ui.write("\n%s\n" % minirst.format(doc, textwidth)) + keep = ui.verbose and ['verbose'] or [] + formatted, pruned = minirst.format(doc, textwidth, keep=keep) + ui.write("\n%s\n" % formatted) + if pruned: + ui.write(_('\nuse "hg -v help %s" to show verbose help\n') % name) if not ui.quiet: # options