类 OptionHandler
- java.lang.Object
- org.springframework.boot.cli.command.options.OptionHandler
- 直接已知子类:
CompilerOptionHandler
public class OptionHandler extends Object
Delegate used byOptionParsingCommandto parse options and run the command.
构造器概要
构造器 构造器 说明 OptionHandler()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetHelp()Collection<OptionHelp>getOptionsHelp()joptsimple.OptionParsergetParser()joptsimple.OptionSpecBuilderoption(String name, String description)joptsimple.OptionSpecBuilderoption(Collection<String> aliases, String description)protected voidoptions()ExitStatusrun(String... args)protected ExitStatusrun(joptsimple.OptionSet options)Run the command using the specified parsedOptionSet.
构造器详细资料
OptionHandler
public OptionHandler()
方法详细资料
option
public joptsimple.OptionSpecBuilder option(Collection<String> aliases, String description)
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()