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(java.lang.reflect.Field field,
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(java.lang.reflect.Field field, CommandLine.Help.Ansi ansi, java.util.List<CommandLine.Help.Ansi.IStyle> styles)
""
if the option is a boolean and does not take a parameter.field
- the annotated field 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()