Package org.kendar.cli
Class CommandOptions
java.lang.Object
org.kendar.cli.CommandOptions
- All Implemented Interfaces:
CommandItem
-
Method Summary
Modifier and TypeMethodDescriptiongetId()booleanstatic CommandOptionsstatic CommandOptionsvoidvoidparseInternal(List<MainArg> mainArgs) protected static voidparseListOfCommands(List<MainArg> mainArgs, List<CommandOption> co, CommandItem caller, boolean multiple) voidprotected static voidprintHelpListOfCommands(ArrayList<HelpLine> result, List<CommandOption> co, int level) voidsetParent(CommandItem parent) withCallback(Consumer<String> callback) withDescription(String description) withOptions(CommandOption... commandOptions)
-
Method Details
-
of
-
of
-
parseListOfCommands
protected static void parseListOfCommands(List<MainArg> mainArgs, List<CommandOption> co, CommandItem caller, boolean multiple) -
printHelpListOfCommands
protected static void printHelpListOfCommands(ArrayList<HelpLine> result, List<CommandOption> co, int level) -
getCommandOptions
- Specified by:
getCommandOptionsin interfaceCommandItem
-
getId
-
withOptions
-
getLongShortCommands
-
getLongShortCommandsChild
-
parse
-
parseInternal
-
hasOption
-
getOptionValues
-
withCallback
-
printHelp
-
getDescription
-
withDescription
-
getCommandOption
-
getParent
- Specified by:
getParentin interfaceCommandItem
-
setParent
- Specified by:
setParentin interfaceCommandItem
-