Hi,
Structopt is really nice, but to have a complete solution what would be good is to also support TOML and env vars parsing (think 12-factor apps).
That's not the scope of StructOpt. StructOpt is an interface for clap. If clap implement such functionality, StructOpt will, but StructOpt can't support such a functionality without support from clap.
I think it's a very interesting feature, but the feature request is for https://github.com/kbknapp/clap-rs, not StructOpt
Related issues: https://github.com/kbknapp/clap-rs/issues/748
Thanks, I'll have a look at that issue.
Clap supports sourcing values from env vars now. Could this be reconsidered for structopt? https://docs.rs/clap/2.32.0/clap/struct.Arg.html#method.env
Yes, you can use it using env = "FOO"
Most helpful comment
Yes, you can use it using
env = "FOO"