extracttests.py: improved command line parser
This commit is contained in:
parent
ac06f34627
commit
c0770f0823
|
@ -138,8 +138,11 @@ for arg in sys.argv[1:]:
|
||||||
xml = True
|
xml = True
|
||||||
elif arg.startswith('--html='):
|
elif arg.startswith('--html='):
|
||||||
htmldir = arg[7:]
|
htmldir = arg[7:]
|
||||||
else:
|
elif arg.endswith('.cpp'):
|
||||||
filename = arg
|
filename = arg
|
||||||
|
else:
|
||||||
|
print 'Invalid option: ' + arg
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
# extract test cases
|
# extract test cases
|
||||||
|
|
Loading…
Reference in New Issue