Class CommandRegistration.DefaultHelpOptionsSpec
java.lang.Object
org.springframework.shell.command.CommandRegistration.DefaultHelpOptionsSpec
- All Implemented Interfaces:
CommandRegistration.HelpOptionsSpec
- Enclosing interface:
- CommandRegistration
public static class CommandRegistration.DefaultHelpOptionsSpec
extends Object
implements CommandRegistration.HelpOptionsSpec
-
Method Summary
Modifier and TypeMethodDescriptionand()
Return a builder for chaining.Sets command used for help.enabled
(boolean enabled) Whether help options are enabled.Sets long names options for help.shortNames
(Character... shortNames) Sets short names options for help.
-
Method Details
-
command
Description copied from interface:CommandRegistration.HelpOptionsSpec
Sets command used for help.- Specified by:
command
in interfaceCommandRegistration.HelpOptionsSpec
- Parameters:
command
- the command- Returns:
- a help option for chaining
-
longNames
Description copied from interface:CommandRegistration.HelpOptionsSpec
Sets long names options for help.- Specified by:
longNames
in interfaceCommandRegistration.HelpOptionsSpec
- Parameters:
longNames
- the long names- Returns:
- a help option for chaining
-
shortNames
Description copied from interface:CommandRegistration.HelpOptionsSpec
Sets short names options for help.- Specified by:
shortNames
in interfaceCommandRegistration.HelpOptionsSpec
- Parameters:
shortNames
- the short names- Returns:
- a help option for chaining
-
enabled
Description copied from interface:CommandRegistration.HelpOptionsSpec
Whether help options are enabled.- Specified by:
enabled
in interfaceCommandRegistration.HelpOptionsSpec
- Parameters:
enabled
- the enabled flag- Returns:
- a help option for chaining
-
and
Description copied from interface:CommandRegistration.HelpOptionsSpec
Return a builder for chaining.- Specified by:
and
in interfaceCommandRegistration.HelpOptionsSpec
- Returns:
- a builder for chaining
-