From c0770f0823ef3b0ae0898709f84dcef238d97ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 27 Nov 2011 17:11:38 +0100 Subject: [PATCH] extracttests.py: improved command line parser --- tools/extracttests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/extracttests.py b/tools/extracttests.py index 2851a300e..4d9f479bf 100755 --- a/tools/extracttests.py +++ b/tools/extracttests.py @@ -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