Skip to content

Default value for --config in cli.py #23

@LKirst

Description

@LKirst

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:

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions