Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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