Uses of Class
readycli.Command.Builder
-
Uses of Command.Builder in readycli
Methods in readycli that return Command.Builder Modifier and Type Method Description Command.Builder
Command.Builder. addDocumentationAlias(java.lang.String alias)
Adds a new alias for the option that shows the documentation.Command.Builder
Command.Builder. addDocumentationAliases(java.lang.String... aliases)
Adds new aliases for the documentation option, that shows the documentation.Command.Builder
Command.Builder. addFlag(java.lang.String name, java.lang.String description)
Adds a flag to the command.Command.Builder
Command.Builder. addOption(Option option)
Command.Builder
Command.Builder. addRequiredArgument(java.lang.String name, java.lang.String description)
Adds a required argument to the command.Command.Builder
Command.Builder. addSubCommand(java.lang.String name, Command subCommand)
Adds asub-command
that can be invoked by specifying it as the first argument of the current command.static Command.Builder
Command. create(java.lang.String usageString, java.lang.String description, java.lang.String... docAliases)
Creates a new command with the given name, description, usage string and documentation option aliases.
SeeCommand
for more details about usage strings.static Command.Builder
Command. defaultDocs(java.lang.String usageString, java.lang.String description)
Creates a new command with the given name, description, usage string and with the default documentation option aliases, that are '?'