Mercurial > public > mercurial-scm > hg
comparison mercurial/help.py @ 22118:9a299c39de01
help: normalize helplist hints
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 12 Aug 2014 04:11:32 -0500 |
parents | c1d93edcf004 |
children | 645457f73aa6 |
comparison
equal
deleted
inserted
replaced
22117:c1d93edcf004 | 22118:9a299c39de01 |
---|---|
367 pass | 367 pass |
368 elif ui.verbose: | 368 elif ui.verbose: |
369 rst.append('\n%s\n' % optrst(_("global options"), | 369 rst.append('\n%s\n' % optrst(_("global options"), |
370 commands.globalopts, ui.verbose)) | 370 commands.globalopts, ui.verbose)) |
371 if name == 'shortlist': | 371 if name == 'shortlist': |
372 rst.append(_('\nuse "hg help" for the full list ' | 372 rst.append(_('\n(use "hg help" for the full list ' |
373 'of commands\n')) | 373 'of commands)\n')) |
374 else: | 374 else: |
375 if name == 'shortlist': | 375 if name == 'shortlist': |
376 rst.append(_('\nuse "hg help" for the full list of commands ' | 376 rst.append(_('\n(use "hg help" for the full list of commands ' |
377 'or "hg -v" for details\n')) | 377 'or "hg -v" for details)\n')) |
378 elif name and not full: | 378 elif name and not full: |
379 rst.append(_('\nuse "hg help %s" to show the full help ' | 379 rst.append(_('\n(use "hg help %s" to show the full help ' |
380 'text\n') % name) | 380 'text)\n') % name) |
381 else: | 381 else: |
382 rst.append(_('\nuse "hg -v help%s" to show builtin aliases and ' | 382 rst.append(_('\n(use "hg help -v%s" to show built-in aliases ' |
383 'global options\n') % (name and " " + name or "")) | 383 'and global options)\n') |
384 % (name and " " + name or "")) | |
384 return rst | 385 return rst |
385 | 386 |
386 def helptopic(name): | 387 def helptopic(name): |
387 for names, header, doc in helptable: | 388 for names, header, doc in helptable: |
388 if name in names: | 389 if name in names: |