public interface CommandUsageGenerator
| Modifier and Type | Method and Description |
|---|---|
<T> void |
usage(CommandMetadata command,
ParserMetadata<T> parserConfig,
OutputStream output)
Generates the help output to the provided output stream
|
<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
|
<T> void usage(CommandMetadata command, ParserMetadata<T> parserConfig, OutputStream output) throws IOException
command - Command MetadataparserConfig - Parser configurationoutput - Output StreamIOException<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–2022. All rights reserved.