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: Allow position-sensitive flags #5290

Merged
merged 5 commits into from Jan 8, 2024
Merged

fix: Allow position-sensitive flags #5290

merged 5 commits into from Jan 8, 2024

Conversation

epage
Copy link
Member

@epage epage commented Jan 8, 2024

In writing up a reply to #5287, I tested our find example and realized it had the bug they were trying to workaround. This PR adds support for options to act like flags. We were already half-way there with num_args(0..=1). Not the most elegant solution for the user (elegant architecturally in clap) but it at least unblocks users.

@epage epage merged commit d6479ff into clap-rs:master Jan 8, 2024
22 checks passed
@epage epage deleted the or branch January 8, 2024 16:31
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