mirror of
https://github.com/clap-rs/clap
synced 2024-12-18 16:43:37 +00:00
f9f778e8a4
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. |
||
---|---|---|
.. | ||
help.rs | ||
macros.rs | ||
meta.rs | ||
mod.rs | ||
parser.rs | ||
settings.rs |