Show More
@@ -126,7 +126,7 b' def checkfile(filename, initlevel):' | |||||
126 | (filename, initlevel)) |
|
126 | (filename, initlevel)) | |
127 | return checkseclevel(doc, 'input from %s' % filename, initlevel) |
|
127 | return checkseclevel(doc, 'input from %s' % filename, initlevel) | |
128 |
|
128 | |||
129 | if __name__ == "__main__": |
|
129 | def main(): | |
130 | optparser = optparse.OptionParser("""%prog [options] |
|
130 | optparser = optparse.OptionParser("""%prog [options] | |
131 |
|
131 | |||
132 | This checks all help documents of Mercurial (topics, commands, |
|
132 | This checks all help documents of Mercurial (topics, commands, | |
@@ -159,6 +159,7 b' option.' | |||||
159 |
|
159 | |||
160 | (options, args) = optparser.parse_args() |
|
160 | (options, args) = optparser.parse_args() | |
161 |
|
161 | |||
|
162 | global _verbose | |||
162 | _verbose = options.verbose |
|
163 | _verbose = options.verbose | |
163 |
|
164 | |||
164 | if options.file: |
|
165 | if options.file: | |
@@ -167,3 +168,6 b' option.' | |||||
167 | else: |
|
168 | else: | |
168 | if checkhghelps(): |
|
169 | if checkhghelps(): | |
169 | sys.exit(1) |
|
170 | sys.exit(1) | |
|
171 | ||||
|
172 | if __name__ == "__main__": | |||
|
173 | main() |
General Comments 0
You need to be logged in to leave comments.
Login now