public static void printHelp() { HelpFormatter formatter = new HelpFormatter(); formatter.printHelp("mesh.jar", options()); } }
/** * Parse the given command line arguments and return the parsed representation. * * @param args * @return * @throws ParseException */ public static CommandLine parse(String... args) throws ParseException { CommandLineParser parser = new BasicParser(); return parser.parse(options(), args); }