Option opt = options[offset];
PassedOption option = arguments.getOption(def);
value = option == null ? null : option.getValue();
}
} else {
PassedArgument pa = arguments.getArgument(a);
if (pa == null) throw new IllegalArgumentException("Missing argument: " + a);
required = true;
value = pa.getValue();
}
if (value == null && type.isPrimitive()) newargs[a] = ReflectionUtil.getPrimitiveDefault(type);
else newargs[a] = value == null ? null : set.convert(value, type);