static class CommandLine.Help.MinimalOptionRenderer extends java.lang.Object implements CommandLine.Help.IOptionRenderer
Options
to a single row with two columns of text: an
option name and a description. If multiple names or description lines exist, the first value is used.Constructor and Description |
---|
MinimalOptionRenderer() |
Modifier and Type | Method and Description |
---|---|
CommandLine.Help.Ansi.Text[][] |
render(CommandLine.Option option,
java.lang.reflect.Field field,
CommandLine.Help.IParamLabelRenderer parameterLabelRenderer,
CommandLine.Help.ColorScheme scheme)
Returns a text representation of the specified Option and the Field that captures the option value.
|
public CommandLine.Help.Ansi.Text[][] render(CommandLine.Option option, java.lang.reflect.Field field, CommandLine.Help.IParamLabelRenderer parameterLabelRenderer, CommandLine.Help.ColorScheme scheme)
CommandLine.Help.IOptionRenderer
render
in interface CommandLine.Help.IOptionRenderer
option
- the command line option to show online usage help forfield
- the field that will hold the value for the command line optionparameterLabelRenderer
- responsible for rendering option parameters to textscheme
- color scheme for applying ansi color styles to options and option parameters