类 HelpCommand
- java.lang.Object
- org.springframework.boot.cli.command.AbstractCommand
- org.springframework.boot.cli.command.core.HelpCommand
- 所有已实现的接口:
Command
public class HelpCommand extends AbstractCommand
InternalCommand
used for 'help' requests.
构造器概要
构造器 构造器 说明 HelpCommand(CommandRunner commandRunner)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getHelp()
Gets full help text for the command, e.g. a longer description and one line per option.Collection<OptionHelp>
getOptionsHelp()
Returns help for each supported option.String
getUsageHelp()
Returns usage help for the command.ExitStatus
run(String... args)
Run the command.从类继承的方法 org.springframework.boot.cli.command.AbstractCommand
getDescription, getExamples, getName
构造器详细资料
HelpCommand
public HelpCommand(CommandRunner commandRunner)
方法详细资料
getUsageHelp
public String getUsageHelp()
从接口复制的说明:Command
Returns usage help for the command. This should be a simple one-line string describing basic usage. e.g. '[options] <file>'. Do not include the name of the command in this string.- 指定者:
getUsageHelp
在接口中Command
- 覆盖:
getUsageHelp
在类中AbstractCommand
- 返回:
- the command's usage help
getHelp
public String getHelp()
从接口复制的说明:Command
Gets full help text for the command, e.g. a longer description and one line per option.- 指定者:
getHelp
在接口中Command
- 覆盖:
getHelp
在类中AbstractCommand
- 返回:
- the command's help text
getOptionsHelp
public Collection<OptionHelp> getOptionsHelp()
从接口复制的说明:Command
Returns help for each supported option.- 指定者:
getOptionsHelp
在接口中Command
- 覆盖:
getOptionsHelp
在类中AbstractCommand
- 返回:
- help for each of the command's options