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

Don't suppress other errors if a parameter wrongly appears multiple times #14

Open
cbeck88 opened this issue Oct 14, 2024 · 0 comments
Open

Comments

@cbeck88
Copy link
Owner

cbeck88 commented Oct 14, 2024

If the program is used as ./my_prog --param foo --param bar, when param is a Parameter and not a Repeat field, the clap parser fails fast because we tell it to only expect this parameter to appear once.

Instead, these two parameter types should look the same from clap's point of view, so that if it appears multiple times, we can report other missing or invalid arguments as well.

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

No branches or pull requests

1 participant