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 String
final String
final CLICommand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOptionalArg
(String name, CLIArgumentType type, String... descriptionLines) void
addRequiredArg
(String name, CLIArgumentType type, String... descriptionLines) protected void
appendCommandNoArgs
(StringBuilder builder) protected void
appendPositionalArgs
(StringBuilder builder, boolean leadingSpace) int
int
protected String
getCommandForHelp
(boolean includeArgs) abstract CLIHandler
void
printHelp
(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
-