+ # Parse command line arguments.
+ Parser = argparse.ArgumentParser(description='Test the Clang Static Analyzer.')
+ Parser.add_argument('--strictness', dest='strictness', type=int, default=0,
+ help='0 to fail on runtime errors, 1 to fail when the number\
+ of found bugs are different from the reference, 2 to \
+ fail on any difference from the reference. Default is 0.')
+ Parser.add_argument('-r', dest='regenerate', action='store_true', default=False,
+ help='Regenerate reference output.')
+ Parser.add_argument('-rs', dest='update_reference', action='store_true',
+ default=False, help='Regenerate reference output and update svn.')
+ Args = Parser.parse_args()
+