Mercurial > hg
diff tests/test-help.t @ 40955:f6187e60f792
help: present boolean arguments as "--[no-]foo"
This should make it much more discoverable (we document it in `hg help
flags`, but most users don't think to look there).
Note that flags that default to None (and not False) will not get this
new presentation. We can change the defaults to False later for flags
where it makes sense (probably almost all boolean flags).
Differential Revision: https://phab.mercurial-scm.org/D5432
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 14 Dec 2018 13:44:46 -0800 |
parents | 8604f130eb43 |
children | fcc0a7ac9ebd |
line wrap: on
line diff
--- a/tests/test-help.t Fri Dec 14 13:33:12 2018 -0800 +++ b/tests/test-help.t Fri Dec 14 13:44:46 2018 -0800 @@ -440,7 +440,7 @@ --profile print command execution profile --version output version information and exit -h --help display help and exit - --hidden consider hidden changesets (default: off) + --[no-]hidden consider hidden changesets (default: off) --pager TYPE when to paginate (boolean, always, auto, or never) (default: auto) @@ -540,7 +540,7 @@ --profile print command execution profile --version output version information and exit -h --help display help and exit - --hidden consider hidden changesets (default: off) + --[no-]hidden consider hidden changesets (default: off) --pager TYPE when to paginate (boolean, always, auto, or never) (default: auto) @@ -905,8 +905,8 @@ xxxxxxxxxxxxxxxxxxxxxxx (default: 3) -n -- normal desc --newline VALUE line1 line2 - --default-off enable X (default: off) - --default-on enable Y (default: on) + --[no-]default-off enable X (default: off) + --[no-]default-on enable Y (default: on) --callableopt VALUE adds foo --customopt VALUE adds bar --customopt-withdefault VALUE adds bar (default: foo) @@ -2889,7 +2889,7 @@ <td>--help</td> <td>display help and exit</td></tr> <tr><td></td> - <td>--hidden</td> + <td>--[no-]hidden</td> <td>consider hidden changesets (default: off)</td></tr> <tr><td></td> <td>--pager TYPE</td> @@ -3093,7 +3093,7 @@ <td>--help</td> <td>display help and exit</td></tr> <tr><td></td> - <td>--hidden</td> + <td>--[no-]hidden</td> <td>consider hidden changesets (default: off)</td></tr> <tr><td></td> <td>--pager TYPE</td>