1parser.add_argument("--list", nargs="+", default=["a", "b"])
2
3SHELL
4$ python3 example.py --list a b c
5# List would look like ['a','b','c']
1parser.add_argument('-l','--list', nargs='+', help='<Required> Set flag', required=True)
2# Use like:
3# python arg.py -l 1234 2345 3456 4567