Closed fonsp closed 3 years ago
this sounds reasonable, but it's not implemented yet, I guess I forget to implement it somehow
I'm doing a clean up of this package to split things, I'll implement this in the next version.
I find you actually want
from_toml(Settings, "options.toml"; kwargs...)
after implementing merge
, I find it's different from a mutable Dict
here, since two options types contains each default values, so in some cases it won't make sense to overwrite the first option with the second (since what you actually want to do is to only overwrite what is specified by the keywords)
It would be great if something like this could work:
Or is there a suggested method to achieve the same result?