Mercurial > hg
comparison tests/test-help.t @ 37134:6890b7e991a4
help: supporting both help and doc for aliases
This allows an alias to be definted like:
[alias]
lj = log -Tjson
lj:help = [-r REV]
lj:doc = Shows the revision log in JSON format.
Differential Revision: https://phab.mercurial-scm.org/D2678
author | Rodrigo Damazio <rdamazio@google.com> |
---|---|
date | Sun, 04 Mar 2018 17:11:33 -0500 |
parents | 979c8ce9022d |
children | 335e19c6b7fa |
comparison
equal
deleted
inserted
replaced
37133:a2a6755a3def | 37134:6890b7e991a4 |
---|---|
775 (some details hidden, use --verbose to show complete help) | 775 (some details hidden, use --verbose to show complete help) |
776 | 776 |
777 $ hg help shellalias | 777 $ hg help shellalias |
778 hg shellalias | 778 hg shellalias |
779 | 779 |
780 shell alias for: | 780 shell alias for: echo hi |
781 | 781 |
782 echo hi | 782 (no help text available) |
783 | 783 |
784 defined by: helpext | 784 defined by: helpext |
785 | 785 |
786 (some details hidden, use --verbose to show complete help) | 786 (some details hidden, use --verbose to show complete help) |
787 | 787 |