##// END OF EJS Templates
check-code: factor out boot procedure into main...
FUJIWARA Katsunori -
r29568:7825f615 default
parent child Browse files
Show More
@@ -622,7 +622,7 def checkfile(f, logfunc=_defaultlogger.
622 622
623 623 return result
624 624
625 if __name__ == "__main__":
625 def main():
626 626 parser = optparse.OptionParser("%prog [options] [files]")
627 627 parser.add_option("-w", "--warnings", action="store_true",
628 628 help="include warning-level checks")
@@ -650,4 +650,7 if __name__ == "__main__":
650 650 blame=options.blame, debug=options.debug,
651 651 lineno=options.lineno):
652 652 ret = 1
653 sys.exit(ret)
653 return ret
654
655 if __name__ == "__main__":
656 sys.exit(main())
General Comments 0
You need to be logged in to leave comments. Login now