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
|
||||
elif arg.startswith('--html='):
|
||||
htmldir = arg[7:]
|
||||
else:
|
||||
elif arg.endswith('.cpp'):
|
||||
filename = arg
|
||||
else:
|
||||
print 'Invalid option: ' + arg
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
# extract test cases
|
||||
|
|
Loading…
Reference in New Issue