public static EnvBuilder builderFromArgs(String caller, String args[]) { Options options = new Options(); EnvBuilder.addStandardOptions(options); CommandLineParser parser = new PosixParser(); CommandLine cmd; try { cmd = parser.parse(options, args); } catch (ParseException e) { System.err.println("Invalid option usage: " + e.getMessage()); new HelpFormatter().printHelp(caller, options); return null; } return new EnvBuilder(cmd); }
.create("o")); EnvBuilder.addStandardOptions(options);
.create("o")); EnvBuilder.addStandardOptions(options);
.create("i")); EnvBuilder.addStandardOptions(options); CommandLineParser parser = new PosixParser(); CommandLine cmd;
.hasArg() .create("k")); EnvBuilder.addStandardOptions(options);
.create("n")); EnvBuilder.addStandardOptions(options);
.create("n")); EnvBuilder.addStandardOptions(options);
.create("p")); EnvBuilder.addStandardOptions(options);
.create("x")); EnvBuilder.addStandardOptions(options);
.withDescription("the name of the phrase analyzer to use") .create("p")); EnvBuilder.addStandardOptions(options);
.withDescription("the name of the phrase analyzer to use") .create("p")); EnvBuilder.addStandardOptions(options);
.withDescription("drop and recreate all tables") .create("d")); EnvBuilder.addStandardOptions(options);
.withDescription("algorithm") .create("n")); EnvBuilder.addStandardOptions(options);
.withDescription("algorithm") .create("n")); EnvBuilder.addStandardOptions(options);
.withDescription("drop and recreate all tables") .create("d")); EnvBuilder.addStandardOptions(options);
.create("x")); EnvBuilder.addStandardOptions(options);
.withDescription("keep all labeled entities") .create("k")); EnvBuilder.addStandardOptions(options);
.create("x")); EnvBuilder.addStandardOptions(options);
.withDescription("drop and recreate all tables") .create("d")); EnvBuilder.addStandardOptions(options);
.withDescription("drop and recreate all tables") .create("d")); EnvBuilder.addStandardOptions(options);