wscott / fplan

Early retirement financial calculator
GNU General Public License v3.0
26 stars 6 forks source link

Unused fields in config file should print warnings #24

Open wscott opened 5 months ago

wscott commented 5 months ago

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 commented 5 months ago

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