incorrect multiple parameter assignment #2259
-
Code
Versionrustc 1.48.0 (7eac88abb 2020-11-16) Actual Behavior Summary
Expected Behavior Summarythe "foo" and "bar" parameters should not be part of the gathered -x options. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Why did you not use the issue template? I have no idea what clap version you are using. |
Beta Was this translation helpful? Give feedback.
-
sorry this is my first rust related issue and the template had things I didnt know/recognize. I am very new to Rust ... :( name = "clap" |
Beta Was this translation helpful? Give feedback.
-
What exactly did you have trouble in the template with? We built such that even a new user to rust and clap should be able to follow it. We fixed this particular issue in v3 using https://docs.rs/clap/3.0.0-beta.2/clap/struct.Arg.html#method.multiple_occurrences. Replace |
Beta Was this translation helpful? Give feedback.
What exactly did you have trouble in the template with? We built such that even a new user to rust and clap should be able to follow it.
We fixed this particular issue in v3 using https://docs.rs/clap/3.0.0-beta.2/clap/struct.Arg.html#method.multiple_occurrences.
Replace
multiple
with the above method.