extracttests.py: Added a little help info

This commit is contained in:
Daniel Marjamäki 2011-11-27 08:13:11 +01:00
parent 9c626b941a
commit 52caadf957
1 changed files with 4 additions and 0 deletions

4
tools/extracttests.py Normal file → Executable file
View File

@ -55,6 +55,10 @@ class Extract:
def strtoxml(s):
return s.replace('&','&amp;').replace('"', '&quot;').replace('<','&lt;').replace('>','&gt;')
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'
# parse command line
xml = False
filename = None