-
Notifications
You must be signed in to change notification settings - Fork 425
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
Reusing CommandLine object doesn't reset values in argument groups options. #1768
Comments
Apologies for the late reply. @Command(name = "command")
static class MyCommand implements Runnable {
@Option(names = "--option"/*, defaultValue = Option.NULL_VALUE*/) // not needed for non-group options
private String option;
@ArgGroup
private Group group = new Group();
private static class Group {
@Option(names = "--group", defaultValue = Option.NULL_VALUE)
private String option;
}
public void run() {
}
} |
I might be missing something but the test still fails even with the |
I added your test to |
It looks like it was fixed in #1531, thanks! |
And it actually passes without |
The following test fails:
The text was updated successfully, but these errors were encountered: