Package net.royalur.cli
Class CLICommand
java.lang.Object
net.royalur.cli.CLICommand
- Direct Known Subclasses:
CLIRoutingCommand,LutMoveStatsCommand,LutReadCommand,LutTrainCommand,StatsCountCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal List<CLIArgument>final Stringfinal Stringfinal CLICommand -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOptionalArg(String name, CLIArgumentType type, String... descriptionLines) voidaddRequiredArg(String name, CLIArgumentType type, String... descriptionLines) protected voidappendCommandNoArgs(StringBuilder builder) protected voidappendPositionalArgs(StringBuilder builder, boolean leadingSpace) intintprotected StringgetCommandForHelp(boolean includeArgs) abstract CLIHandlervoidprintHelp(PrintStream out)
-
Field Details
-
parent
-
name
-
description
-
args
-
-
Constructor Details
-
CLICommand
-
-
Method Details
-
addRequiredArg
-
addOptionalArg
-
countPositionalArgs
public int countPositionalArgs() -
countKeywordArgs
public int countKeywordArgs() -
getCommandStack
-
appendCommandNoArgs
-
appendPositionalArgs
-
getCommandForHelp
-
getCommandForHelp
-
getCommandNoArgs
-
getCommand
-
printHelp
-
handle
- Throws:
Exception
-