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.BuilderCommand.Builder. addDocumentationAlias(java.lang.String alias)Adds a new alias for the option that shows the documentation.Command.BuilderCommand.Builder. addDocumentationAliases(java.lang.String... aliases)Adds new aliases for the documentation option, that shows the documentation.Command.BuilderCommand.Builder. addFlag(java.lang.String name, java.lang.String description)Adds a flag to the command.Command.BuilderCommand.Builder. addOption(Option option)Command.BuilderCommand.Builder. addRequiredArgument(java.lang.String name, java.lang.String description)Adds a required argument to the command.Command.BuilderCommand.Builder. addSubCommand(java.lang.String name, Command subCommand)Adds asub-commandthat can be invoked by specifying it as the first argument of the current command.static Command.BuilderCommand. 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.
SeeCommandfor more details about usage strings.static Command.BuilderCommand. 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 '?'