Index: utils/analyzer/SATestAdd.py =================================================================== --- utils/analyzer/SATestAdd.py +++ utils/analyzer/SATestAdd.py @@ -90,11 +90,12 @@ # TODO: Add an option not to build. # TODO: Set the path to the Repository directory. if __name__ == '__main__': - if len(sys.argv) < 2: - print >> sys.stderr, 'Usage: ', sys.argv[0],\ - 'project_ID ' \ - 'mode - 0 for single file project; ' \ - '1 for scan_build; ' \ + if len(sys.argv) < 2 or sys.argv[1] in ('-h', '--help'): + print >> sys.stderr, 'Add a new project for testing to static analyzer'\ + '\nUsage: ', sys.argv[0],\ + 'project_ID \n' \ + 'mode: 0 for single file project, ' \ + '1 for scan_build, ' \ '2 for single file c++11 project' sys.exit(-1)