Description
When the following is executed it fails on the check for 2 values.
final Option option = Option.builder("x")
.hasArgs()
.valueSeparator()
.desc("Multiple arg option with value separator.")
.build();
String[] args = {"-x", "A=a", "B=b"{color:#000000}};
CommandLine cmdLine = DefaultParser.builder().build().parse(new Options().addOption(option), args);
Properties props = cmdLine.getOptionProperties(option);
assertEquals(2, props.size());
assertEquals( "a", props.get("A"));
assertEquals( "b", props.get("B"));
Attachments
Issue Links
- links to