We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Test to reproduce the issue:
@Command(name = "test-composite") static class TestComposite { @ArgGroup(exclusive = false, multiplicity = "0..*") List<OuterGroup> outerList; static class OuterGroup { @Option(names = "--add-group", required = true) boolean addGroup; @ArgGroup(exclusive = false, multiplicity = "1") Inner inner; static class Inner { @Option(names = "--option1", required = true) String option1; @Option(names = "--option2", required = true) String option2; } } } @Test public void testCompositeValidation() { TestComposite app = new TestComposite(); CommandLine cmd = new CommandLine(app); try { ParseResult parseResult = cmd.parseArgs("--add-group", "--option2=1", "--option1=1", "--add-group"); fail("Expect exception"); } catch (MissingParameterException ex) { assertEquals("Error: Missing required argument(s): [--add-group (--option1=<option1> --option2=<option2>)]...", ex.getMessage()); } }
The text was updated successfully, but these errors were encountered:
[#655] ignore test until we have a fix
79c8653
8b8aa36
No branches or pull requests
Test to reproduce the issue:
The text was updated successfully, but these errors were encountered: