mirror of https://github.com/tc39/test262.git
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:
parent
91d06f50b5
commit
cb4e1bcbe9
|
@ -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.')
|
||||
|
|
Loading…
Reference in New Issue