当前位置: 首页>>代码示例>>Java>>正文


Java Option类代码示例

本文整理汇总了Java中com.lexicalscope.jewel.cli.Option的典型用法代码示例。如果您正苦于以下问题:Java Option类的具体用法?Java Option怎么用?Java Option使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Option类属于com.lexicalscope.jewel.cli包,在下文中一共展示了Option类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getVendorId

import com.lexicalscope.jewel.cli.Option; //导入依赖的package包/类
@Option(
        description =
                "a vendor identifier. "
                        + " ('convert' mode only)"
                        + " Can only contain alphanumeric symbols or underscores."
                        + " Must be at least 6 characters in length.",
        longName = {"vendor-id"},
        defaultToNull = true
)
String getVendorId();
 
开发者ID:DSRCorporation,项目名称:imf-conversion,代码行数:11,代码来源:ITunesCmdLineArgs.java

示例2: getWorkingDirectory

import com.lexicalscope.jewel.cli.Option; //导入依赖的package包/类
@Option(
        description =
                "a path to the working directory where conversion is performed and output flatten file(s) are placed."
                        + " If the directory doesn't exist, it will be created.",
        shortName = {"w"},
        longName = {"working-dir"},
        defaultToNull = true
)
String getWorkingDirectory();
 
开发者ID:DSRCorporation,项目名称:imf-conversion,代码行数:10,代码来源:ImfUtilityCmdLineArgs.java

示例3: getOutputFormat

import com.lexicalscope.jewel.cli.Option; //导入依赖的package包/类
@Option(shortName = "%",
        longName = "outformat",
        description = "Output format specifier for job data. You can use \"%key\" where key is one of:" +
                      "id, name, group, project, description, href, permalink, averageDuration. E.g. \"%id " +
                      "%href\". For 'jobs info' additional keys: scheduled, scheduleEnabled, enabled, scheduler" +
                      ".serverOwner, scheduler.serverNodeUUID.")
String getOutputFormat();
 
开发者ID:rundeck,项目名称:rundeck-cli,代码行数:8,代码来源:JobOutputFormatOption.java

示例4: getOutput

import com.lexicalscope.jewel.cli.Option; //导入依赖的package包/类
@Option(
        description =
                "the output name"
                        + "\n\t\t'convert' mode: the output .mxf file name (without .mxf extension)."
                        + "\n\t\t'metadata' mode: a path to the generated metadata.xml (including 'metadata.xml' file name)."
                        + "\n\t\t'audiomap' mode: a path to the generated audiomap.xml (including 'audiomap.xml' file name)."
        ,
        shortName = "o",
        longName = {"output"},
        defaultToNull = true
)
String getOutput();
 
开发者ID:DSRCorporation,项目名称:imf-conversion,代码行数:13,代码来源:DppCmdLineArgs.java

示例5: getSub

import com.lexicalscope.jewel.cli.Option; //导入依赖的package包/类
@Option(
        description = "a paths to external subtitles. "
                + " ('convert' mode only)."
                + " Input files must have one of extensions: xml, ttml, itt."
                + " Option takes from 1 to 13 files."
                + " If not set, then only CPL TTML will be processed."
                + " Otherwise only the specified TTML will be converted to ITT.",
        longName = {"sub"},
        defaultToNull = true,
        minimum = 1,
        maximum = 13,
        pattern = ".*\\.xml|.*\\.ttml|.*\\.itt"
)
List<String> getSub();
 
开发者ID:DSRCorporation,项目名称:imf-conversion,代码行数:15,代码来源:ITunesCmdLineArgs.java

示例6: getMode

import com.lexicalscope.jewel.cli.Option; //导入依赖的package包/类
@Option(
        description =
                "iTunes mode. "
                        + "\n\t\tPossible values: [convert, metadata, audiomap, chapters]. "
                        + "\n\t\t\t'convert' mode performs conversion to iTunes format. "
                        + "\n\t\t\t'metadata' mode generates an empty metadata.xml. "
                        + "\n\t\t\t'audiomap' mode generates a default audiomap.xml. "
                        + "\n\t\t\t'chapters' mode generates a default chapters.xml."
                        + "\n\t\t\t'formats'  mode prints supported destination video formats.",
        shortName = {"m"},
        longName = {"mode"},
        defaultValue = "convert"
)
ITunesMode getMode();
 
开发者ID:DSRCorporation,项目名称:imf-conversion,代码行数:15,代码来源:ITunesCmdLineArgs.java

示例7: getHelp

import com.lexicalscope.jewel.cli.Option; //导入依赖的package包/类
@Option(
        helpRequest = true,
        description = "display help",
        shortName = {"h"},
        longName = {"help"}
)
boolean getHelp();
 
开发者ID:DSRCorporation,项目名称:imf-conversion,代码行数:8,代码来源:ImfUtilityCmdLineArgs.java

示例8: getConfig

import com.lexicalscope.jewel.cli.Option; //导入依赖的package包/类
@Option(
        description = "a path to config.xml",
        shortName = {"c"},
        longName = {"config"},
        defaultToNull = true
)
String getConfig();
 
开发者ID:DSRCorporation,项目名称:imf-conversion,代码行数:8,代码来源:ImfUtilityCmdLineArgs.java

示例9: getFormat

import com.lexicalscope.jewel.cli.Option; //导入依赖的package包/类
@Option(
        description = "a destination encoded video format"
                + " ('convert' mode only).",
        shortName = {"f"},
        longName = {"format"},
        defaultToNull = true
)
String getFormat();
 
开发者ID:DSRCorporation,项目名称:imf-conversion,代码行数:9,代码来源:ITunesCmdLineArgs.java

示例10: getOutput

import com.lexicalscope.jewel.cli.Option; //导入依赖的package包/类
@Option(
        description = "a full path to the generated file"
                + "\n\t\t'metadata' mode: a path to the generated metadata.xml (including 'metadata.xml' file name)."
                + "\n\t\t'audiomap' mode: a path to the generated audiomap.xml (including 'audiomap.xml' file name)."
                + "\n\t\t'chapters' mode: a path to the generated chapters.xml (including 'chapters.xml' file name).",
        shortName = {"o"},
        longName = {"output"},
        defaultToNull = true
)
String getOutput();
 
开发者ID:DSRCorporation,项目名称:imf-conversion,代码行数:11,代码来源:ITunesCmdLineArgs.java

示例11: getRunDelay

import com.lexicalscope.jewel.cli.Option; //导入依赖的package包/类
@Option(shortName = "d",
        longName = "delay",
        description = "Run the job at a certain time from now. Format: ##[smhdwMY] where ## " +
                      "is an integer and the units are seconds, minutes, hours, days, weeks, Months, Years. Can combine " +
                      "units, e.g. \"2h30m\", \"20m30s\"",
        pattern = "(\\d+[smhdwMY]\\s*)+")
String getRunDelay();
 
开发者ID:rundeck,项目名称:rundeck-cli,代码行数:8,代码来源:RunBaseOptions.java

示例12: getIncludeFlags

import com.lexicalscope.jewel.cli.Option; //导入依赖的package包/类
@Option(
        longName = "include",
        shortName = "i",
        description =
                "List of archive contents to include. [all,jobs,executions,configs,readmes,acls]. Default: " +
                "all. (API v19 required for other " +
                "options).")
Set<Flags> getIncludeFlags();
 
开发者ID:rundeck,项目名称:rundeck-cli,代码行数:9,代码来源:Archives.java

示例13: getMetadata

import com.lexicalscope.jewel.cli.Option; //导入依赖的package包/类
@Option(
        description =
                "a full path to metadata.xml"
                        + " ('convert' mode only).",
        longName = {"metadata"},
        defaultToNull = true
)
String getMetadata();
 
开发者ID:DSRCorporation,项目名称:imf-conversion,代码行数:9,代码来源:ITunesCmdLineArgs.java

示例14: getCc

import com.lexicalscope.jewel.cli.Option; //导入依赖的package包/类
@Option(
        description = "a path to external closed captions. "
                + " ('convert' mode only)."
                + " Input file must have scc extension.",
        longName = {"cc"},
        defaultToNull = true,
        pattern = ".*\\.scc"
)
String getCc();
 
开发者ID:DSRCorporation,项目名称:imf-conversion,代码行数:10,代码来源:ITunesCmdLineArgs.java

示例15: getMode

import com.lexicalscope.jewel.cli.Option; //导入依赖的package包/类
@Option(
        description =
                "DPP mode."
                        + "\n\t\tPossible values: [convert, metadata, audiomap]."
                        + "\n\t\t\t'convert' mode performs conversion to DPP format."
                        + "\n\t\t\t'metadata' mode generates an empty metadata.xml."
                        + "\n\t\t\t'audiomap' mode generates a default audiomap.xml.",
        shortName = {"m"},
        longName = {"mode"},
        defaultValue = "convert"
)
DppMode getMode();
 
开发者ID:DSRCorporation,项目名称:imf-conversion,代码行数:13,代码来源:DppCmdLineArgs.java


注:本文中的com.lexicalscope.jewel.cli.Option类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。