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

Cumulative argument needs to be last #331

Merged
merged 2 commits into from Sep 20, 2022

Conversation

michal-kralik
Copy link
Contributor

Closes #276

No other arguments can be after a cumulative argument.
This excludes required positional arguments such as cmd <arg> ... <last>.

I believe the best practice shall be - cumulative arguments are always last.
Let me know if you think required arguments shall be supported after cumulative. I'll be happy to update the PR.

@alecthomas
Copy link
Owner

Thanks!

@alecthomas alecthomas merged commit 9c8b401 into alecthomas:master Sep 20, 2022
@alecthomas
Copy link
Owner

Apologies for the delayed response.

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.

Optional arguments should not be allowed after repeated args
2 participants