public static interface CommandLine.IHelpSectionRenderer
CommandLine.setHelpSectionKeys(List)
and CommandLine.setHelpSectionMap(Map)
to change the order of sections,
delete standard sections, add custom sections or replace the renderer of a standard sections with a custom one.
This gives complete freedom on how a usage help message section is rendered, but it also means that the section renderer
is responsible for all aspects of rendering the section, including layout and emitting ANSI escape codes.
The CommandLine.Help.TextTable
and CommandLine.Help.Ansi.Text
classes, and the CommandLine.Help.Ansi.string(String)
and CommandLine.Help.Ansi.text(String)
methods may be useful.
CommandLine.Model.UsageMessageSpec
Modifier and Type | Method and Description |
---|---|
String |
render(CommandLine.Help help)
Renders a section of the usage help, like header heading, header, synopsis heading,
synopsis, description heading, description, etc.
|
String render(CommandLine.Help help)
help
- the Help
instance for which to render a section