public static interface CommandLine.Help.IParamLabelRenderer
IParamLabelRenderer can be used to render the parameter name or label to a String.| Modifier and Type | Method and Description |
|---|---|
CommandLine.Help.Ansi.Text |
renderParameterLabel(CommandLine.Model.ArgSpec argSpec,
CommandLine.Help.Ansi ansi,
java.util.List<CommandLine.Help.Ansi.IStyle> styles)
Returns a text rendering of the option parameter or positional parameter; returns an empty string
"" if the option is a boolean and does not take a parameter. |
java.lang.String |
separator()
Returns the separator between option name and param label.
|
CommandLine.Help.Ansi.Text renderParameterLabel(CommandLine.Model.ArgSpec argSpec, CommandLine.Help.Ansi ansi, java.util.List<CommandLine.Help.Ansi.IStyle> styles)
"" if the option is a boolean and does not take a parameter.argSpec - the named or positional parameter with a parameter labelansi - determines whether ANSI escape codes should be emitted or notstyles - the styles to apply to the parameter labeljava.lang.String separator()