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
Showing
- mercurial/help.py 2 additions, 0 deletionsmercurial/help.py
- tests/test-extension.t 6 additions, 6 deletionstests/test-extension.t
- tests/test-fix.t 7 additions, 6 deletionstests/test-fix.t
- tests/test-help.t 6 additions, 6 deletionstests/test-help.t
- tests/test-narrow-trackedcmd.t 14 additions, 13 deletionstests/test-narrow-trackedcmd.t
- tests/test-shelve.t 1 addition, 1 deletiontests/test-shelve.t
- tests/test-uncommit.t 1 addition, 1 deletiontests/test-uncommit.t
Loading
Please register or sign in to comment