mirror of
https://github.com/clap-rs/clap
synced 2025-03-05 15:57:34 +00:00
This fixes #827. The problem was that the check `grp.args.contains(&grp.args[i])` was a) trivially fulfilled (of course `grp.args[i]` is contained in `grp.args`) and b) causing an out-of-bounds error, since the indices were taken from `.required.len()`. With this change the argument in the group will be removed from the list of required arguments, as intended. |
||
---|---|---|
.. | ||
app | ||
args | ||
completions | ||
errors.rs | ||
fmt.rs | ||
lib.rs | ||
macros.rs | ||
osstringext.rs | ||
strext.rs | ||
suggestions.rs | ||
usage_parser.rs |