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(Field field,
CommandLine.Help.Ansi ansi,
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. |
String |
separator()
Returns the separator between option name and param label.
|
CommandLine.Help.Ansi.Text renderParameterLabel(Field field, CommandLine.Help.Ansi ansi, 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 labelString separator()
Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.