public interface CommandUsageGenerator
| Modifier and Type | Method and Description |
|---|---|
void |
usage(String programName,
String[] groupNames,
String commandName,
CommandMetadata command)
Deprecated.
Please use the overload that takes the parser configuration
explicitly
|
void |
usage(String programName,
String[] groupNames,
String commandName,
CommandMetadata command,
OutputStream output)
Deprecated.
Please use the overload that takes the parser configuration
explicitly
|
<T> void |
usage(String programName,
String[] groupNames,
String commandName,
CommandMetadata command,
ParserMetadata<T> parserConfig)
Generate the help and output it on standard out
|
<T> void |
usage(String programName,
String[] groupNames,
String commandName,
CommandMetadata command,
ParserMetadata<T> parserConfig,
OutputStream output)
Generate the help and output it to the stream
|
@Deprecated void usage(String programName, String[] groupNames, String commandName, CommandMetadata command) throws IOException
programName - Program NamegroupNames - Group Name(s)commandName - Command Namecommand - Command MetadataIOException - Thrown if there is a problem generating usage output@Deprecated void usage(String programName, String[] groupNames, String commandName, CommandMetadata command, OutputStream output) throws IOException
programName - Program NamegroupNames - Group Name(s)commandName - Command Namecommand - Command Metadataoutput - Stream to output toIOException - Thrown if there is a problem generating usage output<T> void usage(String programName, String[] groupNames, String commandName, CommandMetadata command, ParserMetadata<T> parserConfig) throws IOException
T - Command typeprogramName - Program NamegroupNames - Group Name(s)commandName - Command Namecommand - Command MetadataparserConfig - Parser configuration, if null is passed then the
parser configuration is automatically determined based on the
command class for which we are producing helpIOException - Thrown if there is a problem generating usage output<T> void usage(String programName, String[] groupNames, String commandName, CommandMetadata command, ParserMetadata<T> parserConfig, OutputStream output) throws IOException
T - Command typeprogramName - Program NamegroupNames - Group Name(s)commandName - Command Namecommand - Command MetadataparserConfig - Parser Configuration, if null is passed then the
parser configuration is automatically determined based on the
command class for which we are producing helpoutput - Stream to output toIOException - Thrown if there is a problem generating usage outputCopyright © 2012–2018. All rights reserved.