lebrice / SimpleParsing

Simple, Elegant, Typed Argument Parsing with argparse
MIT License
384 stars 46 forks source link

Disallow extra nonexistent fields #290

Closed anivegesana closed 7 months ago

anivegesana commented 8 months ago

If a config file is specified that contains extra keys that don't actually exist in the dataclass, those extra keys are ignored. I think it makes sense to give an error if additional fields are present in the config file when they don't actually exist.