Mercurial > hg
comparison tests/test-record.t @ 30024:f3c4edfd35e1
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.
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 13 Sep 2016 22:58:12 -0400 |
parents | 7109d5ddeb0c |
children | d65e246100ed |
comparison
equal
deleted
inserted
replaced
30023:ff17dff99295 | 30024:f3c4edfd35e1 |
---|---|
43 | 43 |
44 (use 'hg help -e record' to show help for the record extension) | 44 (use 'hg help -e record' to show help for the record extension) |
45 | 45 |
46 options ([+] can be repeated): | 46 options ([+] can be repeated): |
47 | 47 |
48 -A --addremove mark new/missing files as added/removed before | 48 -A --[no-]addremove mark new/missing files as added/removed before |
49 committing | 49 committing |
50 --close-branch mark a branch head as closed | 50 --[no-]close-branch mark a branch head as closed |
51 --amend amend the parent of the working directory | 51 --[no-]amend amend the parent of the working directory |
52 -s --secret use the secret phase for committing | 52 -s --[no-]secret use the secret phase for committing |
53 -e --edit invoke editor on commit messages | 53 -e --[no-]edit invoke editor on commit messages |
54 -I --include PATTERN [+] include names matching the given patterns | 54 -I --include PATTERN [+] include names matching the given patterns |
55 -X --exclude PATTERN [+] exclude names matching the given patterns | 55 -X --exclude PATTERN [+] exclude names matching the given patterns |
56 -m --message TEXT use text as commit message | 56 -m --message TEXT use text as commit message |
57 -l --logfile FILE read commit message from file | 57 -l --logfile FILE read commit message from file |
58 -d --date DATE record the specified date as commit date | 58 -d --date DATE record the specified date as commit date |
59 -u --user USER record the specified user as committer | 59 -u --user USER record the specified user as committer |
60 -S --subrepos recurse into subrepositories | 60 -S --[no-]subrepos recurse into subrepositories |
61 -w --ignore-all-space ignore white space when comparing lines | 61 -w --[no-]ignore-all-space ignore white space when comparing lines |
62 -b --ignore-space-change ignore changes in the amount of white space | 62 -b --[no-]ignore-space-change ignore changes in the amount of white space |
63 -B --ignore-blank-lines ignore changes whose lines are all blank | 63 -B --[no-]ignore-blank-lines ignore changes whose lines are all blank |
64 | 64 |
65 (some details hidden, use --verbose to show complete help) | 65 (some details hidden, use --verbose to show complete help) |
66 | 66 |
67 Select no files | 67 Select no files |
68 | 68 |