##// END OF EJS Templates
check-seclevel: wrap entry point by function...
Yuya Nishihara -
r26398:70abba79 default
parent child Browse files
Show More
@@ -126,7 +126,7 b' def checkfile(filename, initlevel):'
126 126 (filename, initlevel))
127 127 return checkseclevel(doc, 'input from %s' % filename, initlevel)
128 128
129 if __name__ == "__main__":
129 def main():
130 130 optparser = optparse.OptionParser("""%prog [options]
131 131
132 132 This checks all help documents of Mercurial (topics, commands,
@@ -159,6 +159,7 b' option.'
159 159
160 160 (options, args) = optparser.parse_args()
161 161
162 global _verbose
162 163 _verbose = options.verbose
163 164
164 165 if options.file:
@@ -167,3 +168,6 b' option.'
167 168 else:
168 169 if checkhghelps():
169 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