help: mark boolean flags with [no-] to explain that they can be negated
That is, help gets tweaked thus: global options ([+] can be repeated): -v --[no-]verbose enable additional output Other proposals have included: global options ([+] can be repeated, options marked [?] are boolean flags): -v --verbose[?] enable additional output and global options ([+] can be repeated, options marked [^] are boolean flags): -v --verbose[^] enable additional output which avoid the unfortunate visual noise in this patch. In this version's favor, it's consistent with what I'm used to seeing in man pages and similar documentation venues.
Showing
- mercurial/help.py 12 additions, 0 deletionsmercurial/help.py
- tests/test-convert.t 5 additions, 5 deletionstests/test-convert.t
- tests/test-dispatch.t 1 addition, 1 deletiontests/test-dispatch.t
- tests/test-extdiff.t 2 additions, 2 deletionstests/test-extdiff.t
- tests/test-extension.t 51 additions, 51 deletionstests/test-extension.t
- tests/test-help.t 76 additions, 76 deletionstests/test-help.t
- tests/test-mq-qrefresh-interactive.t 11 additions, 11 deletionstests/test-mq-qrefresh-interactive.t
- tests/test-qrecord.t 30 additions, 30 deletionstests/test-qrecord.t
- tests/test-record.t 16 additions, 16 deletionstests/test-record.t
- tests/test-shelve.t 10 additions, 10 deletionstests/test-shelve.t
- tests/test-strip.t 4 additions, 4 deletionstests/test-strip.t
Loading
Please register or sign in to comment