Tabnine Logo
org.apache.commons.cli
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.commons.cli

Best Java code snippets using org.apache.commons.cli (Showing top 20 results out of 10,647)

origin: apache/flink

public ListOptions(CommandLine line) {
  super(line);
  this.showAll = line.hasOption(ALL_OPTION.getOpt());
  this.showRunning = line.hasOption(RUNNING_OPTION.getOpt());
  this.showScheduled = line.hasOption(SCHEDULED_OPTION.getOpt());
}
origin: apache/flink

public SavepointOptions(CommandLine line) {
  super(line);
  args = line.getArgs();
  dispose = line.hasOption(SAVEPOINT_DISPOSE_OPTION.getOpt());
  disposeSavepointPath = line.getOptionValue(SAVEPOINT_DISPOSE_OPTION.getOpt());
  jarFile = line.getOptionValue(JAR_OPTION.getOpt());
}
origin: apache/flink

private static Options buildGeneralOptions(Options options) {
  options.addOption(HELP_OPTION);
  // backwards compatibility: ignore verbose flag (-v)
  options.addOption(new Option("v", "verbose", false, "This option is deprecated."));
  return options;
}
origin: apache/rocketmq

@Override
public Options buildCommandlineOptions(Options options) {
  Option opt = new Option("a", "activeTopic", false, "print active topic only");
  opt.setRequired(false);
  options.addOption(opt);
  opt = new Option("t", "topic", true, "print select topic only");
  opt.setRequired(false);
  options.addOption(opt);
  return options;
}
origin: apache/zookeeper

public DelQuotaCommand() {
  super("delquota", "[-n|-b] path");
  OptionGroup og1 = new OptionGroup();
  og1.addOption(new Option("b", false, "bytes quota"));
  og1.addOption(new Option("n", false, "num quota"));
  options.addOptionGroup(og1);
}
origin: apache/rocketmq

@Override
public Options buildCommandlineOptions(Options options) {
  Option opt = new Option("t", "topic", true, "topic name");
  opt.setRequired(true);
  options.addOption(opt);
  return options;
}
origin: apache/flink

public CancelOptions(CommandLine line) {
  super(line);
  this.args = line.getArgs();
  this.withSavepoint = line.hasOption(CANCEL_WITH_SAVEPOINT_OPTION.getOpt());
  this.targetDirectory = line.getOptionValue(CANCEL_WITH_SAVEPOINT_OPTION.getOpt());
}
origin: apache/zookeeper

public SetQuotaCommand() {
  super("setquota", "-n|-b val path");
  
  OptionGroup og1 = new OptionGroup();
  og1.addOption(new Option("b", true, "bytes quota"));
  og1.addOption(new Option("n", true, "num quota"));
  og1.setRequired(true);
  options.addOptionGroup(og1);
}
origin: apache/rocketmq

@Override
public Options buildCommandlineOptions(final Options options) {
  Option opt = new Option("k", "key", true, "config key");
  opt.setRequired(true);
  options.addOption(opt);
  opt = new Option("v", "value", true, "config value");
  opt.setRequired(true);
  options.addOption(opt);
  return options;
}
origin: apache/rocketmq

@Override
public Options buildCommandlineOptions(Options options) {
  Option opt = new Option("t", "topic", true, "topic name");
  opt.setRequired(true);
  options.addOption(opt);
  return options;
}
origin: apache/rocketmq

@Override
public Options buildCommandlineOptions(Options options) {
  Option opt = new Option("t", "topic", true, "topic name");
  opt.setRequired(true);
  options.addOption(opt);
  opt = new Option("c", "clusterName", true, "delete topic from which cluster");
  opt.setRequired(true);
  options.addOption(opt);
  return options;
}
origin: apache/rocketmq

@Override
public Options buildCommandlineOptions(Options options) {
  Option opt = new Option("b", "brokerAddr", true, "Broker address");
  opt.setRequired(false);
  options.addOption(opt);
  opt = new Option("c", "clusterName", true, "which cluster");
  opt.setRequired(false);
  options.addOption(opt);
  return options;
}
origin: apache/rocketmq

@Override
public Options buildCommandlineOptions(Options options) {
  Option opt = new Option("g", "groupName", true, "consumer group name");
  opt.setRequired(false);
  options.addOption(opt);
  Option optionShowClientIP = new Option("s", "showClientIP", true, "Show Client IP per Queue");
  optionShowClientIP.setRequired(false);
  options.addOption(optionShowClientIP);
  return options;
}
origin: apache/rocketmq

@Override
public Options buildCommandlineOptions(Options options) {
  Option opt = new Option("c", "clusterModel", false, "clusterModel");
  opt.setRequired(false);
  options.addOption(opt);
  return options;
}
origin: apache/rocketmq

@Override
public Options buildCommandlineOptions(Options options) {
  Option opt = new Option("t", "topic", true, "topic name");
  opt.setRequired(true);
  options.addOption(opt);
  opt = new Option("k", "msgKey", true, "Message Key");
  opt.setRequired(true);
  options.addOption(opt);
  return options;
}
origin: apache/rocketmq

@Override
public Options buildCommandlineOptions(final Options options) {
  Option opt = new Option("b", "brokerAddr", true, "update which broker");
  opt.setRequired(false);
  options.addOption(opt);
  opt = new Option("c", "clusterName", true, "update which cluster");
  opt.setRequired(false);
  options.addOption(opt);
  return options;
}
origin: apache/rocketmq

public static Options buildCommandlineOptions(final Options options) {
  Option opt = new Option("h", "help", false, "Print help");
  opt.setRequired(false);
  options.addOption(opt);
  opt =
    new Option("n", "namesrvAddr", true,
      "Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876");
  opt.setRequired(false);
  options.addOption(opt);
  return options;
}
origin: apache/rocketmq

@Override
public Options buildCommandlineOptions(Options options) {
  Option opt = new Option("i", "messageId", true, "unique message ID");
  opt.setRequired(false);
  options.addOption(opt);
  return options;
}
origin: apache/rocketmq

@Override
public Options buildCommandlineOptions(Options options) {
  Option opt = new Option("t", "topic", true, "topic name");
  opt.setRequired(true);
  options.addOption(opt);
  return options;
}
origin: apache/rocketmq

public static Options buildCommandlineOptions(final Options options) {
  Option opt = new Option("c", "configFile", true, "Name server config properties file");
  opt.setRequired(false);
  options.addOption(opt);
  opt = new Option("p", "printConfigItem", false, "Print all config item");
  opt.setRequired(false);
  options.addOption(opt);
  return options;
}
org.apache.commons.cli

Most used classes

  • CommandLine
  • Options
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • HelpFormatter
    A formatter of help messages for the current command line options
  • CommandLineParser
  • Option
    Describes a single command-line option. It maintains information regarding the short-name of the opt
  • DefaultParser,
  • GnuParser,
  • OptionBuilder,
  • PosixParser,
  • Option$Builder,
  • BasicParser,
  • OptionGroup,
  • Parser,
  • MissingOptionException,
  • UnrecognizedOptionException,
  • MissingArgumentException,
  • AlreadySelectedException,
  • CommandLine,
  • ArgumentBuilder
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now