Is your feature request related to a problem? Please describe.
If you typo a key in the config, it'll not detect that and use the default. It can be really frustrating debugging that.
Describe the solution you'd like
Error if there's any unused keys in the config.
I think the best way to do this is to create a org_config and parsed_config. As you confirm options, move them to parsed_config and delete them from org_config. If there's ANYTHING in org_config when you're done, error.
Describe alternatives you've considered
Unless there's some config-parser library I haven't found yet, I'm not sure there is any alternative...
Is your feature request related to a problem? Please describe. If you typo a key in the config, it'll not detect that and use the default. It can be really frustrating debugging that.
Describe the solution you'd like Error if there's any unused keys in the config.
I think the best way to do this is to create a
org_config
andparsed_config
. As you confirm options, move them toparsed_config
and delete them fromorg_config
. If there's ANYTHING inorg_config
when you're done, error.Describe alternatives you've considered Unless there's some config-parser library I haven't found yet, I'm not sure there is any alternative...
Additional context