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