Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unused fields in config file should print warnings #24

Open
wscott opened this issue Jan 26, 2024 · 1 comment
Open

Unused fields in config file should print warnings #24

wscott opened this issue Jan 26, 2024 · 1 comment

Comments

@wscott
Copy link
Owner

wscott commented Jan 26, 2024

Right now the toml file is used for setting but any extra unused settings are just ignored and most everything has a default value.

So if you make a typo in your file that value will just be ignored and it might not be obvious.

A nice feature would be to print a warning about any data items in the user's toml file that are not used. One way to do this would be to delete each key as it is used and then print warnings about anything remaining. Also include warnings about any keys that have the wrong type.

@wscott
Copy link
Owner Author

wscott commented Jan 27, 2024

I have a PR with a version of this: #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant