Mercurial > public > mercurial-scm > hg
diff mercurial/help.py @ 22117:c1d93edcf004
help: fold repeatable option message into option table header
This will hopefully conserve some limited user attention.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 12 Aug 2014 04:00:42 -0500 |
parents | 161085f87b95 |
children | 9a299c39de01 |
line wrap: on
line diff
--- a/mercurial/help.py Tue Aug 12 03:53:33 2014 -0500 +++ b/mercurial/help.py Tue Aug 12 04:00:42 2014 -0500 @@ -59,12 +59,12 @@ data.append((so, lo, desc)) + if multioccur: + header += (_(" ([+] can be repeated)")) + rst = ['\n%s:\n\n' % header] rst.extend(minirst.maketable(data, 1)) - if multioccur: - rst.append(_("\n[+] marked option can be specified multiple times\n")) - return ''.join(rst) def indicateomitted(rst, omitted, notomitted=None):