-
Notifications
You must be signed in to change notification settings - Fork 424
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
Composite Argument Groups: more informative error messages #744
Labels
Milestone
Comments
This is great feedback, thank you! Note to self:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using the following code to ilustrate the issue:
Issue 1: If I'm running the code above with one argument only ("-v"), I'm getting an error message:
In general, the message is fine, however, there is still room for improvement: it's the group ('-v') that needs to be specified at least two times, currently, the message tells that you have to give
(-v) (-v) [-v]
three times, however. This is misleading IMHO, I would propose to come up with an error message like:Issue 2: If I'm running the code with four arguments ("-v -v -v -v"), I'm getting an error message, too:
I doubt whether this makes clear to the user what's wrong here.
In this case, I would propose to come up with an error message like:
Just my 2 cents, thanks for providing and continuously improving picocli.
The text was updated successfully, but these errors were encountered: