-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Using parser.add_argument('--spectate', default=False, action='store_true') crashes with the following error:
Traceback (most recent call last):
...
File "/opt/anaconda3/lib/python3.7/site-packages/argparse_prompt.py", line 30, in add_argument
action = super().add_argument(*args, type=type, default='', **kwargs)
File "/opt/anaconda3/lib/python3.7/argparse.py", line 1353, in add_argument
action = action_class(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'type'
Problem is here. Passing a type when it’s not needed will cause Argparse to throw the error.
Metadata
Metadata
Assignees
Labels
No labels