# HG changeset patch # User Martin Geisler # Date 1266082584 -3600 # Node ID 8b45102934e2b2277b60725fd594e10384d3f37c # Parent e99e0e077bc47b9df35407ab162f9ec5c27905a9 commands: support verbose help diff -r e99e0e077bc4 -r 8b45102934e2 mercurial/commands.py --- a/mercurial/commands.py Sat Feb 13 18:11:08 2010 +0100 +++ b/mercurial/commands.py Sat Feb 13 18:36:24 2010 +0100 @@ -1527,7 +1527,11 @@ 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