Skip to content

clap derive: trouble using BTreeSet<OsString> instead of Vec<OsString> #5437

Answered by epage
briandorsey asked this question in Q&A
Discussion options

You must be logged in to vote

At this time, we don't support arbitrary collections. We are tracking this in #3114. Of particular interest for a Set is whether redundant values should be an error or ignored.

As for the error, it is because it is seeing the BTreeSet and is thinking that you are trying to parse a single value into that but doesn't know hiw.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@briandorsey
Comment options

Answer selected by briandorsey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants