multiple values and occurrences are not correctly counted / grouped for positionals #3763
Closed
2 tasks done
Labels
A-parsing
Area: Parser's logic and needs it changed somehow.
C-bug
Category: Updating dependencies
E-hard
Call for participation: Experience needed to fix: Hard / a lot
M-breaking-change
Meta: Implementing or merging this will introduce a breaking change.
Milestone
Please complete the following tasks
Rust Version
rustc 1.57.0 (f1edd0429 2021-11-29)
Clap Version
3.1.13
Minimal reproducible code
Steps to reproduce the bug with the above code
Inject those tests into clap
Actual Behaviour
The first test will report groups correctly but will also report an occurrence per value, contradicting the documentation. In a change I'm working on, it will instead report one occurrence regardless of how many occurrences there should be
The second test is invalid because we don't stop parsing multiple values once we've hit the cap, so we disallow it in a debug assert
Expected Behaviour
Both pass
Additional Context
No response
Debug Output
No response
The text was updated successfully, but these errors were encountered: