Skip to content

[Question] Multiple arg pairs #1982

Answered by CreepySkeleton
fxwiegand asked this question in Q&A
Discussion options

You must be logged in to vote

Um, probably Arg::new("pairs").multiple(true).number_of_values(2)? Then you can iterate through the pairs using values_of("pairs")

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@fxwiegand
Comment options

@CreepySkeleton
Comment options

@fxwiegand
Comment options

Answer selected by fxwiegand
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