hi,professor:
i run python/main.py with command: python3 main.py, then got error:
how can i modify it?
anthor error:
subparsers = parser.add_subparsers(dest='run_mode', required=True)
File "main.py", line 26, in main
subparsers = parser.add_subparsers(dest='run_mode', required=True)
File "/usr/lib/python3.6/argparse.py", line 1716, in add_subparsers
action = parsers_class(option_strings=[], **kwargs)
TypeError: init() got an unexpected keyword argument 'required'
hi,professor: i run python/main.py with command: python3 main.py, then got error: how can i modify it? anthor error: subparsers = parser.add_subparsers(dest='run_mode', required=True) File "main.py", line 26, in main subparsers = parser.add_subparsers(dest='run_mode', required=True) File "/usr/lib/python3.6/argparse.py", line 1716, in add_subparsers action = parsers_class(option_strings=[], **kwargs) TypeError: init() got an unexpected keyword argument 'required'
please!