示例#1
0
文件: Main.java 项目: kdunzin/ipscan
 private static void processCommandLine(String[] args, ComponentRegistry componentRegistry) {
   if (args.length != 0) {
     CommandLineProcessor cli = componentRegistry.getCommandLineProcessor();
     try {
       cli.parse(args);
     } catch (Exception e) {
       showMessageToConsole(e.getMessage() + "\n\n" + cli);
       System.exit(1);
     }
   }
 }