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.HelpOptionsSpecSets command used for help.- Specified by:
commandin interfaceCommandRegistration.HelpOptionsSpec- Parameters:
command- the command- Returns:
- a help option for chaining
-
longNames
Description copied from interface:CommandRegistration.HelpOptionsSpecSets long names options for help.- Specified by:
longNamesin interfaceCommandRegistration.HelpOptionsSpec- Parameters:
longNames- the long names- Returns:
- a help option for chaining
-
shortNames
Description copied from interface:CommandRegistration.HelpOptionsSpecSets short names options for help.- Specified by:
shortNamesin interfaceCommandRegistration.HelpOptionsSpec- Parameters:
shortNames- the short names- Returns:
- a help option for chaining
-
enabled
Description copied from interface:CommandRegistration.HelpOptionsSpecWhether help options are enabled.- Specified by:
enabledin interfaceCommandRegistration.HelpOptionsSpec- Parameters:
enabled- the enabled flag- Returns:
- a help option for chaining
-
and
Description copied from interface:CommandRegistration.HelpOptionsSpecReturn a builder for chaining.- Specified by:
andin interfaceCommandRegistration.HelpOptionsSpec- Returns:
- a builder for chaining
-