public void testAddParser() throws Exception {
class MyOptions {
@Option public BigInteger option;
}
OptionDescription.parsers.put(BigInteger.class, new ValueParser() {
public Object parse(OptionDescription desc, Class<?> type, String value) {
return new BigInteger(value);
}
});