| 56 | } |
| 57 | public main(){} |
| 58 | private static void initCliArgs(String[] args) { |
| 59 | CommandLineParser parser = new org.apache.commons.cli.DefaultParser(); |
| 60 | |
| 61 | OPTIONS.addOption("h", "help", false, "Print this help message"); |
| 62 | OPTIONS.addOption("v", "version", false, "Print the version information and exit"); |
| 63 | OPTIONS.addOption("d", "debug", false, "Enable debug mode"); |
| 64 | |
| 65 | try { |
| 66 | commandLine = parser.parse(OPTIONS, args); |
| 67 | if (commandLine.hasOption("h")) { |
| 68 | |
| 69 | } |
| 70 | }catch (Exception e) { |
| 71 | |
| 72 | e.printStackTrace(); |
| 73 | } |
| 74 | |
| 75 | } |
| 76 | |
| 77 | |
| 78 | } |