extracttests.py: improved command line parser

This commit is contained in:
Daniel Marjamäki 2011-11-27 17:11:38 +01:00
parent ac06f34627
commit c0770f0823
1 changed files with 4 additions and 1 deletions

View File

@ -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