Skip to content

Parse a Vec<T> out of a single comma-delimited argument without consuming the rest #5330

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

You must be logged in to vote

Check out the arg types referencehttps://docs.rs/clap/latest/clap/_derive/index.html#arg-types). You'll need to undo what it does. In particular, you also need to set ArgAction::Set.

#4626 is the issue trying to figure out a way to improve this.

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
2 replies
@stijndcl
Comment options

@epage
Comment options

Answer selected by stijndcl
Comment options

You must be logged in to vote
9 replies
@epage
Comment options

epage Jan 8, 2025
Maintainer

@epage
Comment options

epage Jan 8, 2025
Maintainer

@faultymajority
Comment options

@epage
Comment options

epage Jan 8, 2025
Maintainer

@faultymajority
Comment options

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