org.apache.commons.cli.Option.getValueSeparator()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(143)

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

Option.getValueSeparator介绍

[英]Returns the value separator character.
[中]返回值分隔符字符。

代码示例

代码示例来源:origin: apache/flink

return Stream.of(key + dynamicproperties.getValueSeparator() + value);
} else {
  return Stream.empty();

代码示例来源:origin: commons-cli/commons-cli

char sep = getValueSeparator();

代码示例来源:origin: commons-cli/commons-cli

private static void checkOption(Option option, String opt, String description, String longOpt, int numArgs,
                String argName,  boolean required, boolean optionalArg,
                char valueSeparator, Class<?> cls)
{
  assertEquals(opt, option.getOpt());
  assertEquals(description, option.getDescription());
  assertEquals(longOpt, option.getLongOpt());
  assertEquals(numArgs, option.getArgs());
  assertEquals(argName, option.getArgName());
  assertEquals(required, option.isRequired());
  assertEquals(optionalArg, option.hasOptionalArg());
  assertEquals(valueSeparator, option.getValueSeparator());
  assertEquals(cls,  option.getType());
}

代码示例来源:origin: cytoscape.corelibs/commons-cli-1-x-cytocape-custom

char sep = getValueSeparator();

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

char sep = getValueSeparator();

代码示例来源:origin: org.cytoscape/cy-commons-cli

char sep = getValueSeparator();

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

char sep = getValueSeparator();

代码示例来源:origin: io.snappydata/gemfirexd-tools

final Option option = (Option)optionObj;
if (option.hasValueSeparator()
  && option.getValueSeparator() != '='
  && (sepIdx = opt.indexOf(option.getValueSeparator())) >= 0) {
 final String optKey = opt.substring(0, sepIdx);
 if (optKey.equals(option.getOpt())
sepIdx = arg.indexOf(foundOption.getValueSeparator());
tokens.add(arg.substring(0, sepIdx)); // --foo
tokens.add(arg.substring(sepIdx + 1)); // value

代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.cli

char sep = getValueSeparator();

代码示例来源:origin: org.apache.flink/flink-yarn_2.11

return Stream.of(key + dynamicproperties.getValueSeparator() + value);
} else {
  return Stream.empty();

代码示例来源:origin: org.apache.flink/flink-yarn

return Stream.of(key + dynamicproperties.getValueSeparator() + value);
} else {
  return Stream.empty();

代码示例来源:origin: io.snappydata/gemfirexd-tools

buff.append(option.getValueSeparator());

代码示例来源:origin: io.snappydata/gemfirexd-tools

optBuf.append(option.getValueSeparator());

代码示例来源:origin: girtel/Net2Plan

parameters = parseParameters(cmd.getOptionValue("tool-param"), R_OPTIONS.getOption("tool-param").getValueSeparator());

代码示例来源:origin: com.marklogic/mlcp

public CommandlineOption(Option opt)
    throws IllegalArgumentException {
  super(opt.getOpt(), opt.hasArg(), opt.getDescription());
  this.setLongOpt(opt.getLongOpt());
  this.setRequired(opt.isRequired());
  this.setArgName(opt.getArgName());
  this.setArgs(opt.getArgs());
  this.setOptionalArg(opt.hasOptionalArg());
  this.setType(opt.getType());
  this.setValueSeparator(opt.getValueSeparator());
}

相关文章