public abstract class AbstractPrintedGlobalUsageGenerator<T> extends AbstractGlobalUsageGenerator<T>
UsagePrinter
to generate the documentationDEFAULT_COLUMNS
Constructor and Description |
---|
AbstractPrintedGlobalUsageGenerator(int columns,
Comparator<? super HelpHint> hintComparator,
Comparator<? super OptionMetadata> optionComparator,
Comparator<? super CommandMetadata> commandComparator,
Comparator<? super CommandGroupMetadata> commandGroupComparator,
boolean includeHidden) |
Modifier and Type | Method and Description |
---|---|
protected UsagePrinter |
createUsagePrinter(OutputStream out)
Creates a usage printer for the given stream
|
void |
usage(GlobalMetadata<T> global,
OutputStream out)
Generate the help and output it to the stream
|
protected abstract void |
usage(GlobalMetadata<T> global,
UsagePrinter out)
Generate the help and output is using the provided
UsagePrinter |
sortCommandGroups, usage
getCommandComparator, getOptionComparator, htmlize, includeHidden, sortArgumentsRestrictions, sortCommands, sortOptionRestrictions, sortOptions, toDefaultCommand, toDescription, toDescription, toSynopsisUsage, toUsage, toUsage
public AbstractPrintedGlobalUsageGenerator(int columns, Comparator<? super HelpHint> hintComparator, Comparator<? super OptionMetadata> optionComparator, Comparator<? super CommandMetadata> commandComparator, Comparator<? super CommandGroupMetadata> commandGroupComparator, boolean includeHidden)
protected abstract void usage(GlobalMetadata<T> global, UsagePrinter out) throws IOException
UsagePrinter
global
- Global Metadataout
- Usage printer to output withIOException
protected UsagePrinter createUsagePrinter(OutputStream out)
out
- Output streampublic void usage(GlobalMetadata<T> global, OutputStream out) throws IOException
GlobalUsageGenerator
global
- Global metadataIOException
Copyright © 2012–2017. All rights reserved.