This PR is a simple adaptation of the TraverseMap function from https://github.com/jolheiser/ff/pull/1 (thanks, @jolheiser!) which is applied to the JSON, TOML, and YAML config file parsers more or less in the same way. It allows nested config data in any of those formats to map to flag names in a reasonably well-defined way.
Addresses #107 and #108. I'm pretty sure this isn't a breaking change, but I'd appreciate a review from anyone who'd care to give it a look.
edit: I broke fftoml for sure, I'll fix that.
This is a precursor to a much larger refactor, including many highly requested features, coming soon to theaters near you.
This PR is a simple adaptation of the TraverseMap function from https://github.com/jolheiser/ff/pull/1 (thanks, @jolheiser!) which is applied to the JSON, TOML, and YAML config file parsers more or less in the same way. It allows nested config data in any of those formats to map to flag names in a reasonably well-defined way.
Addresses #107 and #108. I'm pretty sure this isn't a breaking change, but I'd appreciate a review from anyone who'd care to give it a look.
edit: I broke fftoml for sure, I'll fix that.
This is a precursor to a much larger refactor, including many highly requested features, coming soon to theaters near you.