Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/help.py @ 22111:aa5e256839d5
help: improve command summary hint
This adds our normal hint parentheses, corrects the command syntax
(consider config), and corrects the fullness of help you'll get.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 12 Aug 2014 03:09:26 -0500 |
parents | 26f7c8033bed |
children | d968f4741a22 |
comparison
equal
deleted
inserted
replaced
22110:26f7c8033bed | 22111:aa5e256839d5 |
---|---|
291 rst.append('\n%s\n\n' % _("global options:")) | 291 rst.append('\n%s\n\n' % _("global options:")) |
292 rst.append(optrst(commands.globalopts, ui.verbose)) | 292 rst.append(optrst(commands.globalopts, ui.verbose)) |
293 | 293 |
294 if not ui.verbose: | 294 if not ui.verbose: |
295 if not full: | 295 if not full: |
296 rst.append(_('\nuse "hg help %s" to show the full help text\n') | 296 rst.append(_('\n(use "hg %s -h" to show more help)\n') |
297 % name) | 297 % name) |
298 elif not ui.quiet: | 298 elif not ui.quiet: |
299 rst.append(_('\n(some details hidden, use --verbose ' | 299 rst.append(_('\n(some details hidden, use --verbose ' |
300 'to show complete help)')) | 300 'to show complete help)')) |
301 | 301 |