extracttests.py: exit if wrong command line is given

This commit is contained in:
Daniel Marjamäki 2011-11-27 14:11:15 +01:00
parent ce2be7cbe3
commit 681e4ba314
1 changed files with 1 additions and 0 deletions

View File

@ -127,6 +127,7 @@ def writeHtmlFile(nodes, functionName, filename, errorsOnly):
if len(sys.argv) == 1 or '--help' in sys.argv:
print 'Extract test cases from test file'
print 'Syntax: extracttests.py [--html=folder] [--xml] path/testfile.cpp'
sys.exit(0)
# parse command line
xml = False