arg parse array argument
parser.add_argument("--list", nargs="+", default=["a", "b"])
SHELL
$ python3 example.py --list a b c
# List would look like ['a','b','c']
arg parse array argument
parser.add_argument("--list", nargs="+", default=["a", "b"])
SHELL
$ python3 example.py --list a b c
# List would look like ['a','b','c']
parser.add_argument array python
parser.add_argument('-l','--list', nargs='+', help='<Required> Set flag', required=True)
# Use like:
# python arg.py -l 1234 2345 3456 4567
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us