类 OptionHandler
- java.lang.Object
- org.springframework.boot.cli.command.options.OptionHandler
- 直接已知子类:
CompilerOptionHandler
public class OptionHandler extends Object
Delegate used byOptionParsingCommand
to parse options and run the command.
构造器概要
构造器 构造器 说明 OptionHandler()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getHelp()
Collection<OptionHelp>
getOptionsHelp()
joptsimple.OptionParser
getParser()
joptsimple.OptionSpecBuilder
option(String name, String description)
joptsimple.OptionSpecBuilder
option(List<String> aliases, String description)
protected void
options()
ExitStatus
run(String... args)
protected ExitStatus
run(joptsimple.OptionSet options)
Run the command using the specified parsedOptionSet
.
构造器详细资料
OptionHandler
public OptionHandler()
方法详细资料
getParser
public joptsimple.OptionParser getParser()
options
protected void options()
run
public final ExitStatus run(String... args) throws Exception
- 抛出:
Exception
run
protected ExitStatus run(joptsimple.OptionSet options) throws Exception
Run the command using the specified parsedOptionSet
.- 参数:
options
- the parsed option set- 返回:
- an ExitStatus
- 抛出:
Exception
- in case of errors
getOptionsHelp
public Collection<OptionHelp> getOptionsHelp()