First of all, thank you for the cookiecutter template! I have one question about cli.py: Should the default for args.config not be a list?
If I'm not mistaken, parser.add_argument("-c", "--config", action="append") creates a list, but the default is a string, not a list with a single string value:
|
args.config = "etc/config.toml" |
Would it not be easier to use a list as default args.config = ["etc/config.toml"], because then, I could always assume args.config is a list?
First of all, thank you for the cookiecutter template! I have one question about cli.py: Should the default for
args.confignot be a list?If I'm not mistaken,
parser.add_argument("-c", "--config", action="append")creates a list, but the default is a string, not a list with a single string value:cookiecutter-python-app/{{cookiecutter.project_slug}}/src/{{cookiecutter.app_name}}/cli.py
Line 73 in 02c1c78
Would it not be easier to use a list as default
args.config = ["etc/config.toml"], because then, I could always assume args.config is a list?