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

Add an assertion for positional args defining long or short #2177

Merged
merged 1 commit into from Oct 18, 2020
Merged

Add an assertion for positional args defining long or short #2177

merged 1 commit into from Oct 18, 2020

Conversation

CastilloDel
Copy link
Contributor

Also update the docs to reflect that Arg.index shouldn't be
used with long or short

Closes #1330

Let me know if I need to change something!

Also update the docs to reflect that Arg.index shouldn't be
used with long or short
Copy link
Member

@pksunkara pksunkara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

@bors
Copy link
Contributor

bors bot commented Oct 18, 2020

Build succeeded:

@bors bors bot merged commit 01027e4 into clap-rs:master Oct 18, 2020
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.

Can't use named arguments if they have index
2 participants