The general idea behind this feature is the following. Take a configuration file:
and a CLI which also wants to provide the option my_option which, if provided overrides the config state and if isn't, just uses the default provided by the configuration.
Open Questions
- A similar problem was already solved by config (and others), can we just use their work/ be compatible with them?
- It should also be to use this feature with
clap.rs directly, structopt or thunder so a more generic approach is generally good
The general idea behind this feature is the following. Take a configuration file:
and a CLI which also wants to provide the option
my_optionwhich, if provided overrides the config state and if isn't, just uses the default provided by the configuration.Open Questions
clap.rsdirectly,structoptorthunderso a more generic approach is generally good