/** * Command Line Interface * @param args command line arguments */ public static void main(String[] args) { Command command = new Command(); command.addOpt("-d", "directory", "./"); command.addOpt("-a", "alpha", "" + DEFAULT_ALPHA); command.addOpt("-s", "seed", null); command.addOpt("-l", "lang", null); command.parse(args); if (command.hasOpt("--genprofile")) { command.generateProfile(); } else if (command.hasOpt("--genprofile-text")) { command.generateProfileFromText(); } else if (command.hasOpt("--detectlang")) { command.detectLang(); } else if (command.hasOpt("--batchtest")) { command.batchTest(); } }