##// END OF EJS Templates
help: show "[no-]" only for default-on Flags...
Martin von Zweigbergk -
r41045:fcc0a7ac default
parent child Browse files
Show More
@@ -160,7 +160,7 b' def optrst(header, options, verbose):'
160 if shortopt:
160 if shortopt:
161 so = '-' + shortopt
161 so = '-' + shortopt
162 lo = '--' + longopt
162 lo = '--' + longopt
163 if isinstance(default, bool):
163 if default is True:
164 lo = '--[no-]' + longopt
164 lo = '--[no-]' + longopt
165
165
166 if isinstance(default, fancyopts.customopt):
166 if isinstance(default, fancyopts.customopt):
@@ -716,7 +716,7 b' hide outer repo'
716 --profile print command execution profile
716 --profile print command execution profile
717 --version output version information and exit
717 --version output version information and exit
718 -h --help display help and exit
718 -h --help display help and exit
719 --[no-]hidden consider hidden changesets (default: off)
719 --hidden consider hidden changesets (default: off)
720 --pager TYPE when to paginate (boolean, always, auto, or never)
720 --pager TYPE when to paginate (boolean, always, auto, or never)
721 (default: auto)
721 (default: auto)
722
722
@@ -755,7 +755,7 b' hide outer repo'
755 --profile print command execution profile
755 --profile print command execution profile
756 --version output version information and exit
756 --version output version information and exit
757 -h --help display help and exit
757 -h --help display help and exit
758 --[no-]hidden consider hidden changesets (default: off)
758 --hidden consider hidden changesets (default: off)
759 --pager TYPE when to paginate (boolean, always, auto, or never)
759 --pager TYPE when to paginate (boolean, always, auto, or never)
760 (default: auto)
760 (default: auto)
761
761
@@ -1043,7 +1043,7 b' extension help itself'
1043 --profile print command execution profile
1043 --profile print command execution profile
1044 --version output version information and exit
1044 --version output version information and exit
1045 -h --help display help and exit
1045 -h --help display help and exit
1046 --[no-]hidden consider hidden changesets (default: off)
1046 --hidden consider hidden changesets (default: off)
1047 --pager TYPE when to paginate (boolean, always, auto, or never)
1047 --pager TYPE when to paginate (boolean, always, auto, or never)
1048 (default: auto)
1048 (default: auto)
1049
1049
@@ -1080,7 +1080,7 b" Make sure that single '-v' option shows "
1080 --profile print command execution profile
1080 --profile print command execution profile
1081 --version output version information and exit
1081 --version output version information and exit
1082 -h --help display help and exit
1082 -h --help display help and exit
1083 --[no-]hidden consider hidden changesets (default: off)
1083 --hidden consider hidden changesets (default: off)
1084 --pager TYPE when to paginate (boolean, always, auto, or never)
1084 --pager TYPE when to paginate (boolean, always, auto, or never)
1085 (default: auto)
1085 (default: auto)
1086
1086
@@ -1155,7 +1155,7 b" help options '-v' and '-v -e' should be "
1155 --profile print command execution profile
1155 --profile print command execution profile
1156 --version output version information and exit
1156 --version output version information and exit
1157 -h --help display help and exit
1157 -h --help display help and exit
1158 --[no-]hidden consider hidden changesets (default: off)
1158 --hidden consider hidden changesets (default: off)
1159 --pager TYPE when to paginate (boolean, always, auto, or never)
1159 --pager TYPE when to paginate (boolean, always, auto, or never)
1160 (default: auto)
1160 (default: auto)
1161
1161
@@ -1191,7 +1191,7 b" help options '-v' and '-v -e' should be "
1191 --profile print command execution profile
1191 --profile print command execution profile
1192 --version output version information and exit
1192 --version output version information and exit
1193 -h --help display help and exit
1193 -h --help display help and exit
1194 --[no-]hidden consider hidden changesets (default: off)
1194 --hidden consider hidden changesets (default: off)
1195 --pager TYPE when to paginate (boolean, always, auto, or never)
1195 --pager TYPE when to paginate (boolean, always, auto, or never)
1196 (default: auto)
1196 (default: auto)
1197
1197
@@ -104,13 +104,12 b' Help text for fix.'
104
104
105 options ([+] can be repeated):
105 options ([+] can be repeated):
106
106
107 --[no-]all fix all non-public non-obsolete revisions (default:
107 --all fix all non-public non-obsolete revisions (default: off)
108 off)
108 --base REV [+] revisions to diff against (overrides automatic selection,
109 --base REV [+] revisions to diff against (overrides automatic
109 and applies to every revision being fixed)
110 selection, and applies to every revision being fixed)
110 -r --rev REV [+] revisions to fix
111 -r --rev REV [+] revisions to fix
111 -w --working-dir fix the working directory (default: off)
112 -w --[no-]working-dir fix the working directory (default: off)
112 --whole always fix every line of a file (default: off)
113 --[no-]whole always fix every line of a file (default: off)
114
113
115 (some details hidden, use --verbose to show complete help)
114 (some details hidden, use --verbose to show complete help)
116
115
@@ -440,7 +440,7 b' Test short command list with verbose opt'
440 --profile print command execution profile
440 --profile print command execution profile
441 --version output version information and exit
441 --version output version information and exit
442 -h --help display help and exit
442 -h --help display help and exit
443 --[no-]hidden consider hidden changesets (default: off)
443 --hidden consider hidden changesets (default: off)
444 --pager TYPE when to paginate (boolean, always, auto, or never)
444 --pager TYPE when to paginate (boolean, always, auto, or never)
445 (default: auto)
445 (default: auto)
446
446
@@ -540,7 +540,7 b' Verbose help for add'
540 --profile print command execution profile
540 --profile print command execution profile
541 --version output version information and exit
541 --version output version information and exit
542 -h --help display help and exit
542 -h --help display help and exit
543 --[no-]hidden consider hidden changesets (default: off)
543 --hidden consider hidden changesets (default: off)
544 --pager TYPE when to paginate (boolean, always, auto, or never)
544 --pager TYPE when to paginate (boolean, always, auto, or never)
545 (default: auto)
545 (default: auto)
546
546
@@ -905,7 +905,7 b' Test command with no help text'
905 xxxxxxxxxxxxxxxxxxxxxxx (default: 3)
905 xxxxxxxxxxxxxxxxxxxxxxx (default: 3)
906 -n -- normal desc
906 -n -- normal desc
907 --newline VALUE line1 line2
907 --newline VALUE line1 line2
908 --[no-]default-off enable X (default: off)
908 --default-off enable X (default: off)
909 --[no-]default-on enable Y (default: on)
909 --[no-]default-on enable Y (default: on)
910 --callableopt VALUE adds foo
910 --callableopt VALUE adds foo
911 --customopt VALUE adds bar
911 --customopt VALUE adds bar
@@ -2889,7 +2889,7 b' Dish up an empty repo; serve it cold.'
2889 <td>--help</td>
2889 <td>--help</td>
2890 <td>display help and exit</td></tr>
2890 <td>display help and exit</td></tr>
2891 <tr><td></td>
2891 <tr><td></td>
2892 <td>--[no-]hidden</td>
2892 <td>--hidden</td>
2893 <td>consider hidden changesets (default: off)</td></tr>
2893 <td>consider hidden changesets (default: off)</td></tr>
2894 <tr><td></td>
2894 <tr><td></td>
2895 <td>--pager TYPE</td>
2895 <td>--pager TYPE</td>
@@ -3093,7 +3093,7 b' Dish up an empty repo; serve it cold.'
3093 <td>--help</td>
3093 <td>--help</td>
3094 <td>display help and exit</td></tr>
3094 <td>display help and exit</td></tr>
3095 <tr><td></td>
3095 <tr><td></td>
3096 <td>--[no-]hidden</td>
3096 <td>--hidden</td>
3097 <td>consider hidden changesets (default: off)</td></tr>
3097 <td>consider hidden changesets (default: off)</td></tr>
3098 <tr><td></td>
3098 <tr><td></td>
3099 <td>--pager TYPE</td>
3099 <td>--pager TYPE</td>
@@ -99,20 +99,19 b' Testing the --import-rules flag of `hg t'
99
99
100 options ([+] can be repeated):
100 options ([+] can be repeated):
101
101
102 --addinclude VALUE [+] new paths to include
102 --addinclude VALUE [+] new paths to include
103 --removeinclude VALUE [+] old paths to no longer include
103 --removeinclude VALUE [+] old paths to no longer include
104 --addexclude VALUE [+] new paths to exclude
104 --addexclude VALUE [+] new paths to exclude
105 --import-rules VALUE import narrowspecs from a file
105 --import-rules VALUE import narrowspecs from a file
106 --removeexclude VALUE [+] old paths to no longer exclude
106 --removeexclude VALUE [+] old paths to no longer exclude
107 --[no-]clear whether to replace the existing
107 --clear whether to replace the existing narrowspec
108 narrowspec (default: off)
108 (default: off)
109 --[no-]force-delete-local-changes forces deletion of local changes when
109 --force-delete-local-changes forces deletion of local changes when
110 narrowing (default: off)
110 narrowing (default: off)
111 -e --ssh CMD specify ssh command to use
111 -e --ssh CMD specify ssh command to use
112 --remotecmd CMD specify hg command to run on the remote
112 --remotecmd CMD specify hg command to run on the remote side
113 side
113 --insecure do not verify server certificate (ignoring
114 --insecure do not verify server certificate
114 web.cacerts config)
115 (ignoring web.cacerts config)
116
115
117 (use 'hg tracked -h' to show more help)
116 (use 'hg tracked -h' to show more help)
118 [255]
117 [255]
@@ -75,7 +75,7 b' shelve has a help message'
75 --cleanup delete all shelved changes
75 --cleanup delete all shelved changes
76 --date DATE shelve with the specified commit date
76 --date DATE shelve with the specified commit date
77 -d --delete delete the named shelved change(s)
77 -d --delete delete the named shelved change(s)
78 -e --[no-]edit invoke editor on commit messages (default: off)
78 -e --edit invoke editor on commit messages (default: off)
79 -l --list list current shelves
79 -l --list list current shelves
80 -m --message TEXT use text as shelve message
80 -m --message TEXT use text as shelve message
81 -n --name NAME use the given name for the shelved commit
81 -n --name NAME use the given name for the shelved commit
@@ -34,7 +34,7 b' Help for uncommit'
34
34
35 options ([+] can be repeated):
35 options ([+] can be repeated):
36
36
37 --[no-]keep allow an empty commit after uncommiting (default:
37 --keep allow an empty commit after uncommiting (default:
38 off)
38 off)
39 -I --include PATTERN [+] include names matching the given patterns
39 -I --include PATTERN [+] include names matching the given patterns
40 -X --exclude PATTERN [+] exclude names matching the given patterns
40 -X --exclude PATTERN [+] exclude names matching the given patterns
General Comments 0
You need to be logged in to leave comments. Login now