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: Always ensure num_args is initialized #4027

Merged
merged 1 commit into from Aug 4, 2022
Merged

Conversation

epage
Copy link
Member

@epage epage commented Aug 4, 2022

As we move people off takes_value/multiple_values, this will provide
something to check.

This was previously blocked on other issues related to flag handling
(#4023)

As we move people off takes_value/multiple_values, this will provide
something to check.

This was previously blocked on other issues related to flag handling
(clap-rs#4023)
@epage epage merged commit 14c8f33 into clap-rs:master Aug 4, 2022
@epage epage deleted the name branch August 4, 2022 14:25
epage added a commit to epage/clap that referenced this pull request Aug 4, 2022
The only time it won't be initialized is before `_build`.  This is possible because
of clap-rs#4027

I wish I could just put the `expect` inside the call but I'm worried
about allowing people to build stuff on top of clap.
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.

None yet

1 participant