com.lexicalscope.jewel.cli.Option类的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(85)

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

Option介绍

暂无

代码示例

代码示例来源:origin: libgdx/packr

@Option(helpRequest = true, description = "display help", shortName = "h", longName = "help")
boolean help();

代码示例来源:origin: lexicalscope/jewelcli

public List<String> shortName() {
  final List<String> shortNames = new ArrayList<String>();
  for (final String element : option.shortName()) {
    final String shortName = element.trim();
    if (shortName.length() > 0) {
      shortNames.add(element.substring(0, 1));
    }
  }
  return shortNames;
}

代码示例来源:origin: torakiki/sejda

public Collection<String> getNonBlankShortNames() {
  Collection<String> result = new ArrayList<String>(Arrays.asList(getOption().shortName()));
  result.remove("");
  return result;
}

代码示例来源:origin: libgdx/packr

@Option(description = "minimize JRE by removing folders and files specified in config file", longName = "minimizejre", defaultToNull = true)
String minimizeJre();

代码示例来源:origin: libgdx/packr

@Option(description = "output directory", longName = "output", defaultToNull = true)
File outDir();

代码示例来源:origin: libgdx/packr

@Option(description = "bundle identifier, e.g. com.badlogic (used for Info.plist on OS X)", longName = "bundle", defaultToNull = true)
String bundleIdentifier();

代码示例来源:origin: libgdx/packr

@Option(description = "name of native executable, without extension", longName = "executable", defaultToNull = true)
String executable();

代码示例来源:origin: libgdx/packr

@Option(description = "folder to cache bundled JRE, to speedup builds", longName = "cachejre", defaultToNull = true)
File cacheJre();

代码示例来源:origin: libgdx/packr

@Option(description = "arguments passed to the JVM, e.g. Xmx1G, without dashes", longName = "vmargs", defaultToNull = true)
List<String> vmArgs();

代码示例来源:origin: libgdx/packr

@Option(description = "additional files and folders to be packed next to the executable", longName = "resources", defaultToNull = true)
List<File> resources();

代码示例来源:origin: libgdx/packr

@Option(description = "target operating system", longName = "platform", defaultToNull = true)
String platform();

代码示例来源:origin: libgdx/packr

@Option(description = "file path or URL to a JDK to be bundled", longName = "jdk", defaultToNull = true)
String jdk();

代码示例来源:origin: libgdx/packr

@Option(description = "JAR file(s) to remove platform libs", longName = "removelibs", defaultToNull = true)
List<String> removePlatformLibs();

代码示例来源:origin: libgdx/packr

@Option(description = "fully qualified main class name, e.g. com.badlogic.MyApp", longName = "mainclass", defaultToNull = true)
String mainClass();

代码示例来源:origin: libgdx/packr

@Option(description = "file containing icon resources (needs to fit platform, OS X only)", longName = "icon", defaultToNull = true)
File iconResource();

代码示例来源:origin: libgdx/packr

@Option(description = "print additional information to console", shortName = "v", longName = "verbose")
boolean verbose();

代码示例来源:origin: libgdx/packr

@Option(description = "JAR file(s) containing code and assets to be packed", longName = "classpath", defaultToNull = true)
List<String> classpath();

代码示例来源:origin: org.apache.ctakes/ctakes-core

@Option(
   shortName = "i",
   longName = "inputDir",
   description = "path to the directory containing the clinical notes to be processed.",
   defaultValue = "" )
String getInputDirectory();

代码示例来源:origin: org.apache.ctakes/ctakes-core

@Option(
   longName = "user",
   description = "UMLS username.",
   defaultValue = "" )
String getUmlsUserName();

代码示例来源:origin: org.apache.ctakes/ctakes-relation-extractor

@Option(
  longName = "resources-dir",
  defaultValue = "../ctakes-relation-extractor-res/src/main/resources",
  description = "the directory where resources (e.g. models) should be written")
public File getResourcesDirectory();

相关文章