Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support TOML and env vars parsing #32

Closed
bestouff opened this issue Nov 24, 2017 · 6 comments
Closed

Support TOML and env vars parsing #32

bestouff opened this issue Nov 24, 2017 · 6 comments
Labels

Comments

@bestouff
Copy link
Contributor

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).

@TeXitoi
Copy link
Owner

TeXitoi commented Nov 24, 2017

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.

@TeXitoi TeXitoi closed this as completed Nov 24, 2017
@TeXitoi
Copy link
Owner

TeXitoi commented Nov 24, 2017

I think it's a very interesting feature, but the feature request is for https://github.com/kbknapp/clap-rs, not StructOpt

@TeXitoi
Copy link
Owner

TeXitoi commented Nov 24, 2017

Related issues: clap-rs/clap#748

@bestouff
Copy link
Contributor Author

Thanks, I'll have a look at that issue.

@colemickens
Copy link

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

@TeXitoi
Copy link
Owner

TeXitoi commented Aug 29, 2018

Yes, you can use it using env = "FOO"

Eijebong pushed a commit to Eijebong/structopt that referenced this issue Jan 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants