This is an archive of the discontinued Mercurial Phabricator instance.

help: present boolean arguments as "--[no-]foo"
ClosedPublic

Authored by martinvonz on Dec 14 2018, 4:57 PM.

Details

Summary

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).

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

martinvonz created this revision.Dec 14 2018, 4:57 PM
This revision was automatically updated to reflect the committed changes.