log.error("OptionException", e.getMessage()); HelpFormatter formatter = new HelpFormatter(); formatter.setGroup(group);
dictionary = VectorHelper.loadTermDictionary(conf, cmdLine.getValue(dictOpt).toString()); } else { throw new OptionException(dictTypeOpt);
log.warn(e.toString(), e); CommandLineUtil.printHelp(group);
weight = new TFIDF(); } else { throw new OptionException(weightOpt);
log.warn(e.toString(), e); CommandLineUtil.printHelp(group);
processIdf = true; } else { throw new OptionException(weightOpt);
log.error(e.getMessage()); CommandLineUtil.printHelpWithGenericOptions(group, e); return null;
log.warn(e.toString(), e); CommandLineUtil.printHelp(group);
processIdf = true; } else { throw new OptionException(weightOpt);
log.error(e.getMessage()); CommandLineUtil.printHelpWithGenericOptions(group, e); return null;
log.warn(e.toString()); CommandLineUtil.printHelp(group);
processIdf = true; } else { throw new OptionException(weightOpt);
log.error(e.getMessage()); CommandLineUtil.printHelpWithGenericOptions(group, e); return null;
log.warn(e.toString()); CommandLineUtil.printHelp(group);
throw new OptionException(testSplitSizeOpt, "must have either split size or split percentage option, not BOTH"); } else if (!cmdLine.hasOption(testSplitSizeOpt) && !cmdLine.hasOption(testSplitPctOpt)) { throw new OptionException(testSplitSizeOpt, "must have either split size or split percentage option");
execute(cl); } catch (OptionException e) { log.error("{}. Type --help for more information.", e.getMessage()); } catch (ExecutionException e) { log.error("Error while starting: {}", e.getMessage());
log.warn(e.toString()); CommandLineUtil.printHelp(group);
log.warn(e.toString(), e); CommandLineUtil.printHelp(group);
log.warn(e.toString(), e); CommandLineUtil.printHelp(group);