net.sourceforge.argparse4j.inf.ArgumentGroup.description()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(63)

本文整理了Java中net.sourceforge.argparse4j.inf.ArgumentGroup.description()方法的一些代码示例,展示了ArgumentGroup.description()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ArgumentGroup.description()方法的具体详情如下:
包路径:net.sourceforge.argparse4j.inf.ArgumentGroup
类名称:ArgumentGroup
方法名:description

ArgumentGroup.description介绍

暂无

代码示例

代码示例来源:origin: lenskit/lenskit

public static void configureArguments(ArgumentParser parser) {
  ArgumentGroup group = parser.addArgumentGroup("script environment")
                .description("Options for interpreting Groovy scripts.");
  group.addArgument("-C", "--classpath")
     .dest("classpath")
     .action(Arguments.append())
     .metavar("URL")
     .help("add URL (jar or dir) to script classpath");
  group.addArgument("-D", "--define")
     .dest("properties")
     .type(new PropertyDef())
     .action(Arguments.append())
     .metavar("PROP=VALUE")
     .help("set property PROP");
}

代码示例来源:origin: lenskit/lenskit

public static void addLoggingGroup(ArgumentParser parser) {
  ArgumentGroup logging = parser.addArgumentGroup("logging")
                 .description("Control the logging output.");
  logging.addArgument("--log-file")
      .type(File.class)
      .metavar("FILE")
      .help("write logging output to FILE");
  logging.addArgument("--log-level")
      .type(String.class)
      .metavar("LEVEL")
      .help("include logging messages at LEVEL in log output");
  logging.addArgument("--log-file-level")
      .type(String.class)
      .metavar("LEVEL")
      .help("include logging messages at LEVEL in log file (defaults to --log-level value)");
  logging.addArgument("--debug-grapht")
      .action(Arguments.storeTrue())
      .help("include debug output from Grapht");
}

代码示例来源:origin: lenskit/lenskit

.required(required);
ArgumentGroup options = parser.addArgumentGroup("input options")
               .description("Additional options for input data.");
group.addArgument("--csv-file")
   .type(File.class)

代码示例来源:origin: bazaarvoice/emodb

@Override
public void configure(Subparser subparser) {
  super.configure(subparser);
  subparser.addArgument("id")
      .required(true)
      .help("IDs for the report (IDs can be reused to continue a partially completed report)");
  subparser.addArgument("--placements")
      .dest("placements")
      .metavar("PLACEMENT")
      .nargs("+")
      .help("Limit report to the provided placements (by default all placements are included)");
  ArgumentGroup continuation = subparser.addArgumentGroup("continue")
      .description("Continue report from a specific shard and table");
  continuation.addArgument("--shard")
      .dest("shard")
      .type(Integer.class)
      .help("The shard ID to continue from (by default the report starts at the first shard)");
  continuation.addArgument("--table")
      .dest("table")
      .help("The UUID of the table to continue from (by default the report starts at the " +
          "first table in the initial shard");
  subparser.addArgument("--readOnly")
      .action(new StoreTrueArgumentAction())
      .dest("readOnly")
      .help("Do not modify any data, such as fixing invalid compaction records");
}

代码示例来源:origin: charite/jannovar

/**
 * Setup global {@link ArgumentParser}
 * 
 * @param parser
 *            {@link ArgumentParser} to setup
 */
public static void setupParser(ArgumentParser parser) {
  parser.version(Jannovar.getVersion());
  parser.addArgument("--version").help("Show Jannovar version").action(Arguments.version());
  ArgumentGroup verboseGroup = parser.addArgumentGroup("Verbosity Options");
  verboseGroup.addArgument("--report-no-progress").help("Disable progress report, more quiet mode")
      .dest("report_progress").setDefault(true).action(Arguments.storeFalse());
  verboseGroup.addArgument("-v", "--verbose").help("Enable verbose mode").dest("verbose").setDefault(false)
      .action(Arguments.storeTrue());
  verboseGroup.addArgument("-vv", "--very-verbose").help("Enable very verbose mode").dest("very_verbose")
      .setDefault(false).action(Arguments.storeTrue());
  ArgumentGroup proxyGroup = parser.addArgumentGroup("Proxy Options");
  proxyGroup.description("Configuration related to Proxy, note that environment variables *_proxy "
      + "and *_PROXY are also interpreted");
  proxyGroup.addArgument("--http-proxy").help("Set HTTP proxy to use, if any");
  proxyGroup.addArgument("--https-proxy").help("Set HTTPS proxy to use, if any");
  proxyGroup.addArgument("--ftp-proxy").help("Set FTP proxy to use, if any");
}

代码示例来源:origin: bazaarvoice/emodb

@Override
protected void addArguments(ArgumentParser parser) {
  ArgumentGroup schemaGroup = parser.addArgumentGroup("schemas");
  schemaGroup.description("Schemas generated by this script");

代码示例来源:origin: cloudera/search

.description(
   "Arguments that provide information about your Solr cluster. "
  + nonSolrCloud("If you are building shards for a SolrCloud cluster, pass the --zk-host argument. "
.description("Arguments for merging the shards that are built into a live Solr cluster. " +
         "Also see the Cluster arguments.");

代码示例来源:origin: com.cloudera.search/search-mr

.description(
   "Arguments that provide information about your Solr cluster. "
  + nonSolrCloud("If you are building shards for a SolrCloud cluster, pass the --zk-host argument. "
.description("Arguments for merging the shards that are built into a live Solr cluster. " +
       "Also see the Cluster arguments.");

代码示例来源:origin: NGDATA/hbase-indexer

.description("Parameters for specifying the HBase indexer definition and/or where it should be loaded from.");
.description("Parameters for specifying what data is included while reading from HBase.");
.description(
   "Arguments that provide information about your Solr cluster. "
  + nonSolrCloud("If you are building shards for a SolrCloud cluster, pass the --zk-host argument. "
.description("Arguments for merging the shards that are built into a live Solr cluster. "
     + "Also see the Cluster arguments.");

代码示例来源:origin: com.ngdata/hbase-indexer-mr

.description("Parameters for specifying the HBase indexer definition and/or where it should be loaded from.");
.description("Parameters for specifying what data is included while reading from HBase.");
.description(
   "Arguments that provide information about your Solr cluster. "
  + nonSolrCloud("If you are building shards for a SolrCloud cluster, pass the --zk-host argument. "
.description("Arguments for merging the shards that are built into a live Solr cluster. "
     + "Also see the Cluster arguments.");

相关文章

微信公众号

最新文章

更多