String[] argv = { "-choice", "A" };
new JCommander(args, argv);
}
public void testListAndSplitters() {
ArgsList al = new ArgsList();
JCommander j = new JCommander(al);
j.parse("-groups", "a,b", "-ints", "41,42", "-hp", "localhost:1000;example.com:1001",
"-hp2", "localhost:1000,example.com:1001", "-uppercase", "ab,cd");
Assert.assertEquals(al.groups.get(0), "a");
Assert.assertEquals(al.groups.get(1), "b");