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

feature request: collect multiple args into other containers than Vec #321

Closed
nagisa opened this issue Jan 7, 2020 · 2 comments
Closed

Comments

@nagisa
Copy link

nagisa commented Jan 7, 2020

Custom parsers appear to only go from a single value to another kind of type, but there’s no way to do e.g.

#[structopt(multiple=true, takes_value=true, ...?)]
something: std::collections::HashSet<...>,

that I can see. It becomes necessary to convert from Vec to HashSet or similar containers after arguments are parsed.

@TeXitoi
Copy link
Owner

TeXitoi commented Jan 7, 2020

Duplicates of #79

@TeXitoi TeXitoi closed this as completed Jan 7, 2020
@TeXitoi
Copy link
Owner

TeXitoi commented Jan 7, 2020

I agree that it would be a great feature. That's one of the oldest proposition, but we don't have any viable proposition, neither any motivated contributor yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants