@Parameter(names = { "-m", "--messages" },
description = "Messages to send, either -m or -f or -j must be specified. The default separator is comma",
splitter = NoSplitter.class)
private List<String> messages = Lists.newArrayList();
public class NoSplitter implements IParameterSplitter {
@Override
public List<String> split(final String value) {
final List<String> result = new LinkedList<>();
result.add(value);
return result;
}
}
'{ "testKey1": "testValue1", "testKey2": "testValue2" }'
Hi Devin,
I’m a bit confused, I don’t see any mention of the comma in your NoSplitter
class… How does this work?
--
You received this message because you are subscribed to the Google Groups "jcommander" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jcommander+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jcommander/a2f6858e-99a5-4c8c-a9fa-a35c2d6c741bo%40googlegroups.com.