@Override @SuppressWarnings("static-access") public List<Option> getOptions() { List<Option> options = super.getOptions(); zkOption = OptionBuilder .withArgName("connection-string") .hasArg() .withDescription("ZooKeeper connection string: hostname1:port,hostname2:port,... Can also be " + "specified through the environment variable LILY_CLI_ZK") .withLongOpt("zookeeper") .create("z"); options.add(zkOption); return options; }
@Override @SuppressWarnings("static-access") public List<Option> getOptions() { List<Option> options = super.getOptions(); nameserverOption = OptionBuilder .withArgName("nameserver") .hasArg() .withDescription("Non-default nameserver to use.") .withLongOpt("host") .create("n"); options.add(nameserverOption); return options; }
@Override @SuppressWarnings("static-access") public List<Option> getOptions() { List<Option> options = super.getOptions(); collectionOption = OptionBuilder .withArgName("collection") .hasArg() .withDescription("Daisy collection name, default " + DEFFAULT_COLLECTION) .withLongOpt("collection") .create("c"); branchOption = OptionBuilder .withArgName("branch") .hasArg() .withDescription("Daisy branch, default " + DEFFAULT_BRANCH) .withLongOpt("branch") .create("b"); options.add(collectionOption); options.add(branchOption); return options; }
@Override @SuppressWarnings("static-access") public List<Option> getOptions() { List<Option> options = super.getOptions(); metricsFileOption = OptionBuilder .withArgName("filename") .hasArg() .withDescription("Name of the input metrics file") .withLongOpt("metrics-file") .create("m"); options.add(metricsFileOption); outputDirOption = OptionBuilder .withArgName("dirname") .hasArg() .withDescription("Name of the output dir") .withLongOpt("output-dir") .create("o"); options.add(outputDirOption); forceOption = OptionBuilder.withDescription("Force using the output directory even if it already exists") .withLongOpt("force").create("f"); options.add(forceOption); return options; }
@Override @SuppressWarnings("static-access") public List<Option> getOptions() { List<Option> options = super.getOptions();
for (Option option : getOptions()) { cliOptions.addOption(option);