in disco-java-agent-instrumentation-preprocess/src/main/java/software/amazon/disco/instrumentation/preprocess/cli/PreprocessConfigParser.java [132:171]
protected OptionToMatch matchArgWithFlag(OptionToMatch option, String argument, PreprocessConfig.PreprocessConfigBuilder builder) {
OptionToMatch result = null;
switch (option.getFlag().toLowerCase()) {
case "-out":
case "--outputdir":
builder.outputDir(argument);
break;
case "--serializationpath":
case "-sp":
builder.serializationJarPath(argument);
break;
case "-jps":
case "--jarpaths":
builder.jarPath(argument);
option.isMatched = true;
result = option;
break;
case "-ap":
case "--agentpath":
builder.agentPath(argument);
break;
case "-arg":
case "--agentarg":
builder.agentArg(argument);
break;
case "-suf":
case "--suffix":
builder.suffix(argument);
break;
case "-jv":
case "--javaversion":
builder.javaVersion(argument);
break;
default:
// will never be invoked since flags are already validated.
}
return result;
}