public class HelpHandler extends CommandHandlerWithHelp
helpArg
Constructor and Description |
---|
HelpHandler(CommandRegistry cmdRegistry) |
HelpHandler(String command,
CommandRegistry cmdRegistry) |
Modifier and Type | Method and Description |
---|---|
protected void |
doHandle(CommandContext ctx) |
void |
handle(CommandContext ctx)
Executes the command.
|
isAvailable, isBatchMode, printHelp, printList
addArgument, getArgument, getArguments, hasArgument, hasArgument, recognizeArguments
public HelpHandler(CommandRegistry cmdRegistry)
public HelpHandler(String command, CommandRegistry cmdRegistry)
public void handle(CommandContext ctx) throws CommandLineException
CommandHandler
handle
in interface CommandHandler
handle
in class CommandHandlerWithHelp
ctx
- current command contextCommandLineException
- if for any reason the command can't be properly handled
the implementation must throw an instance of CommandLineException.protected void doHandle(CommandContext ctx)
doHandle
in class CommandHandlerWithHelp
Copyright © 2023 JBoss by Red Hat. All rights reserved.