JCommander jc = new JCommander(jcArgs);
try {
if (Sets.newHashSet(cliArgs).contains("-help")) {
Parameters parametersAnnotation = jcArgs.getClass().getAnnotation(Parameters.class);
jc.addCommand(parametersAnnotation.commandNames()[0], jcArgs);
jc.usage(parametersAnnotation.commandNames()[0]);
System.exit(0);
}
jc.parse(cliArgs);
} catch (Exception e) {
JCommander.getConsole().println("Cannot parse arguments: " + e.getClass() + " -> " + e.getMessage());