ArgumentGroup miscArgGroup = indexerArgGroup; //parser.addArgumentGroup("Misc arguments");
miscArgGroup.addArgument("--xhelp", "--help", "-help")
.help("Show this help message and exit")
.action(new HelpArgumentAction() {
@Override
public void run(ArgumentParser parser, Argument arg, Map<String, Object> attrs, String flag, Object value) throws ArgumentParserException {
StringWriter strWriter = new StringWriter();
parser.printHelp(new PrintWriter(strWriter, true));
String help = strWriter.toString();