Switch to non-positional argument.

Since the argument is required, we mark it as so. Using this approach
gives the user a much nicer error message, as compared to just the "not
enough args" message.
This commit is contained in:
Sam Saccone 2016-06-18 13:50:56 -07:00
parent 91d06f50b5
commit cb4e1bcbe9
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ from packagerConfig import *
__parser = argparse.ArgumentParser(description= \
'Tool used to generate the test262 website')
__parser.add_argument('version', action='store',
__parser.add_argument('--version', action='store', required=True,
help='Version of the test suite.')
__parser.add_argument('--type', action='store', default=DEFAULT_TESTCASE_TEMPLATE,
help='Type of test case runner to generate.')