public class HelpCommand extends ConsoleCommand
| Constructor and Description |
|---|
HelpCommand() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(Scanner in,
PrintWriter out,
Args args)
Executes a command.
|
String |
getDescription()
Returns localized details of the command.
|
String |
getExamples()
Returns localized examples of the command.
|
String |
getInfo()
Returns a one-line localized description of the command.
|
String |
getName()
Returns the name of the command.
|
String |
getSynopsis()
Returns the usage synopsis of the command.
|
public HelpCommand()
public String getName()
ConsoleCommand
Example:
getName in class ConsoleCommandpublic String getSynopsis()
ConsoleCommand
Example:
The default implementation just returns the name, which implies the command takes no additional arguments.
getSynopsis in class ConsoleCommandpublic String getInfo()
ConsoleCommandThe locale should be the system locale.
getInfo in class ConsoleCommandpublic String getDescription()
ConsoleCommandThe locale should be the system locale.
getDescription in class ConsoleCommandpublic String getExamples()
ConsoleCommandThe locale should be the system locale.
getExamples in class ConsoleCommandpublic boolean execute(Scanner in, PrintWriter out, Args args) throws Exception
ConsoleCommandexecute in class ConsoleCommandin - The console reader.out - The console writer.args - The command arguments. The first argument is always the command itself.Exception - Any thrown exception will simply be sent to STDERR.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.