parser.addArgument("arg3", "desc3", new ArgParser.ArgumentAction() {
public void performAction(String arg) throws Exception {
arg3Called = true;
}
});
parser.addUnmatchedKeyArgument("xxx","yyy", new ArgParser.ArgumentAction() {
public void performAction(String arg) throws Exception {
unmatchedCalled = true;
}
});
parser.parse(new String[] {"arg1=foo", "arg2=bar"});