public abstract class AbstractPrintedCommandUsageGenerator extends AbstractCommandUsageGenerator
UsagePrinter to generate the documentationDEFAULT_COLUMNS| Constructor and Description |
|---|
AbstractPrintedCommandUsageGenerator(int columns,
Comparator<? super OptionMetadata> optionComparator,
boolean includeHidden) |
| Modifier and Type | Method and Description |
|---|---|
protected UsagePrinter |
createUsagePrinter(OutputStream out)
Creates a usage printer for the given stream
|
<T> void |
usage(String programName,
String[] groupNames,
String commandName,
CommandMetadata command,
ParserMetadata<T> parserConfig,
OutputStream out)
Generate the help and output it to the stream
|
abstract <T> void |
usage(String programName,
String[] groupNames,
String commandName,
CommandMetadata command,
ParserMetadata<T> parserConfig,
UsagePrinter out)
Generate the help and output it using the provided
UsagePrinter |
findHelpSections, sortExitCodes, usage, usagegetCommandComparator, getOptionComparator, htmlize, includeHidden, sortArgumentsRestrictions, sortCommands, sortOptionRestrictions, sortOptions, toDefaultCommand, toDescription, toDescription, toSynopsisUsage, toUsage, toUsagepublic AbstractPrintedCommandUsageGenerator(int columns,
Comparator<? super OptionMetadata> optionComparator,
boolean includeHidden)
public abstract <T> void usage(String programName, String[] groupNames, String commandName, CommandMetadata command, ParserMetadata<T> parserConfig, UsagePrinter out) throws IOException
UsagePrinterT - Command typeprogramName - Program NamegroupNames - Group Name(s)commandName - Command Namecommand - Command MetadataparserConfig - Parser configurationout - Usage printer to output withIOException - Thrown if there is a problem generating usage outputprotected UsagePrinter createUsagePrinter(OutputStream out)
out - Output streampublic <T> void usage(String programName, String[] groupNames, String commandName, CommandMetadata command, ParserMetadata<T> parserConfig, OutputStream out) throws IOException
CommandUsageGeneratorT - 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 helpout - Stream to output toIOException - Thrown if there is a problem generating usage outputCopyright © 2012–2022. All rights reserved.