Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
argparse give an array as default
zipirovich
Programming language:
Python
2021-06-19 16:52:40
0
Q:
argparse give an array as default
Ayush Tayal
Code:
Python
2021-06-28 22:56:32
parser.add_argument("--list", nargs="+", default=["a", "b"])
0
Tags
array
Related
python arbitrary arguments *args mcqs
arg parse array argument
python initialize array
initialize array withzeroes in python
how to make default kwargs in python
New to Communities?
Join the community