Skip to content

warn when providing unsupported options in the config file? #11

@ltalirz

Description

@ltalirz

As of now, making a typo in the configuration file (e.g. resulting in a wrong key name) results in the setting being silently ignored. It would be very useful to be warned about this.

One may think that validating the config file should be the role of the configuration provider but in reality the configuration provider may just be a parser of the file format, reused by several click config file options (for different click commands).
I.e. it would be nice if the click option could let the configuration provider know which configuration settings it expects (or handle the validation itself).

Haven't looked into how easy it is to get this from click.

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