r313924 - [Analyzer] Add simple help to SATestAdd.py
George Karpenkov via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 21 14:47:33 PDT 2017
Author: george.karpenkov
Date: Thu Sep 21 14:47:33 2017
New Revision: 313924
URL: http://llvm.org/viewvc/llvm-project?rev=313924&view=rev
Log:
[Analyzer] Add simple help to SATestAdd.py
Differential Revision: https://reviews.llvm.org/D38003
Modified:
cfe/trunk/utils/analyzer/SATestAdd.py
Modified: cfe/trunk/utils/analyzer/SATestAdd.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/analyzer/SATestAdd.py?rev=313924&r1=313923&r2=313924&view=diff
==============================================================================
--- cfe/trunk/utils/analyzer/SATestAdd.py (original)
+++ cfe/trunk/utils/analyzer/SATestAdd.py Thu Sep 21 14:47:33 2017
@@ -90,11 +90,12 @@ def addNewProject(ID, BuildMode) :
# 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>' \
- '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 <mode>\n' \
+ 'mode: 0 for single file project, ' \
+ '1 for scan_build, ' \
'2 for single file c++11 project'
sys.exit(-1)
More information about the cfe-commits
mailing list