Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(parser): low index multiples work with flags #3960

Merged
merged 1 commit into from
Jul 21, 2022
Merged

Conversation

epage
Copy link
Member

@epage epage commented Jul 20, 2022

We had some tests for this but not sufficient obviously. The problem is
we were tweaking the positional argument counter when processing flags
and not just positional arguments. Delaying it until after flags seems
to fix this.

Fixes #3959

We had some tests for this but not sufficient obviously.  The problem is
we were tweaking the positional argument counter when processing flags
and not just positional arguments.  Delaying it until after flags seems
to fix this.

Fixes clap-rs#3959
@epage epage merged commit f48e517 into clap-rs:master Jul 21, 2022
@epage epage deleted the pos branch July 21, 2022 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error with multiple flags and positional arguments
1 participant