Parser parser = new Parser();
parser.setHelpFormatter(hf);
parser.setGroup(main);
System.out.println(main);
CommandLine cl = parser.parseAndHelp(args);
if (cl != null) {
if (exit.execute(null, cl)) {
System.out.println("exit executed");
} else if (help.execute(null, cl)) {
System.out.println("help executed.");