argparse give an array as default code example Example: argparse give an array as default parser.add_argument("--list", nargs="+", default=["a", "b"])