本文整理汇总了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();
示例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();
示例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();
示例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();
示例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();
示例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();
示例7: getHelp
import com.lexicalscope.jewel.cli.Option; //导入依赖的package包/类
@Option(
helpRequest = true,
description = "display help",
shortName = {"h"},
longName = {"help"}
)
boolean getHelp();
示例8: getConfig
import com.lexicalscope.jewel.cli.Option; //导入依赖的package包/类
@Option(
description = "a path to config.xml",
shortName = {"c"},
longName = {"config"},
defaultToNull = true
)
String getConfig();
示例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();
示例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();
示例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();
示例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();
示例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();
示例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();
示例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();