Interface CommandGroupUsageGenerator<T>
- All Known Implementing Classes:
AbstractCommandGroupUsageGenerator, AbstractPrintedCommandGroupUsageGenerator, CliCommandGroupUsageGenerator
public interface CommandGroupUsageGenerator<T>
Interface implemented by classes that can generate usage documentation for a
command group
-
Method Summary
Modifier and TypeMethodDescriptionvoidusage(GlobalMetadata<T> global, CommandGroupMetadata[] groups) Generate the help and output it on standard outvoidusage(GlobalMetadata<T> global, CommandGroupMetadata[] groups, OutputStream output) Generate the help and output it to the stream
-
Method Details
-
usage
Generate the help and output it on standard out- Parameters:
global- Global Metadatagroups- Group path to the command- Throws:
IOException- Thrown if there is a problem generating usage output
-
usage
void usage(GlobalMetadata<T> global, CommandGroupMetadata[] groups, OutputStream output) throws IOException Generate the help and output it to the stream- Parameters:
global- Global metadatagroups- Group path to the commandoutput- Stream to output to- Throws:
IOException- Thrown if there is a problem generating usage output
-