Package picocli
Interface CommandLine.Help.IOptionRenderer
-
- Enclosing class:
- CommandLine.Help
public static interface CommandLine.Help.IOptionRenderer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommandLine.Help.Ansi.Text[][]
render(CommandLine.Model.OptionSpec option, CommandLine.Help.IParamLabelRenderer parameterLabelRenderer, CommandLine.Help.ColorScheme scheme)
Returns a text representation of the specified option and its parameter(s) if any.
-
-
-
Method Detail
-
render
CommandLine.Help.Ansi.Text[][] render(CommandLine.Model.OptionSpec option, CommandLine.Help.IParamLabelRenderer parameterLabelRenderer, CommandLine.Help.ColorScheme scheme)
Returns a text representation of the specified option and its parameter(s) if any.- Parameters:
option
- the command line option to show online usage help forparameterLabelRenderer
- responsible for rendering option parameters to textscheme
- color scheme for applying ansi color styles to options and option parameters- Returns:
- a 2-dimensional array of text values: one or more rows, each containing one or more columns
- Since:
- 3.0
-
-