- java.lang.Object
-
- org.apache.bookkeeper.tools.framework.HelpCommand<GlobalFlagsT,CommandFlagsT>
-
-
Constructor Summary
Constructors Constructor Description HelpCommand(Cli<CommandFlagsT> cli)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
apply(GlobalFlagsT globalFlags, java.lang.String[] args)
Process the command.java.lang.String
description()
Return description name.java.lang.String
name()
Return command name.void
usage()
Print the help information.
-
-
-
Constructor Detail
-
HelpCommand
HelpCommand(Cli<CommandFlagsT> cli)
-
-
Method Detail
-
name
public java.lang.String name()
Description copied from interface:Command
Return command name.- Specified by:
name
in interfaceCommand<GlobalFlagsT extends CliFlags>
- Returns:
- command name.
-
description
public java.lang.String description()
Description copied from interface:Command
Return description name.- Specified by:
description
in interfaceCommand<GlobalFlagsT extends CliFlags>
- Returns:
- description name.
-
apply
public java.lang.Boolean apply(GlobalFlagsT globalFlags, java.lang.String[] args) throws java.lang.Exception
Description copied from interface:Command
Process the command.- Specified by:
apply
in interfaceCommand<GlobalFlagsT extends CliFlags>
args
- command args- Returns:
- true if successfully apply the args, otherwise false
- Throws:
java.lang.Exception
-
usage
public void usage()
Description copied from interface:Command
Print the help information.- Specified by:
usage
in interfaceCommand<GlobalFlagsT extends CliFlags>
-
-