java.lang.Object
org.jline.console.ArgDesc
Deprecated.
Represents a command argument description used for generating command help and documentation.
This class stores the name of an argument and its description as a list of attributed strings,
which can include formatting and styling.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a new argument description with the specified name and an empty description.Deprecated.Creates a new argument description with the specified name and description. -
Method Summary
Modifier and TypeMethodDescriptiondoArgNames(List<String> names) Deprecated.Creates a list of argument descriptions from a list of argument names.List<org.jline.utils.AttributedString> Deprecated.Returns the description of the argument as a list of attributed strings.getName()Deprecated.Returns the name of the argument.
-
Constructor Details
-
ArgDesc
Deprecated.Creates a new argument description with the specified name and an empty description.- Parameters:
name- the name of the argument- Throws:
IllegalArgumentException- if the name contains spaces or tabs
-
ArgDesc
Deprecated.Creates a new argument description with the specified name and description.- Parameters:
name- the name of the argumentdescription- the description of the argument as a list of attributed strings- Throws:
IllegalArgumentException- if the name contains spaces or tabs
-
-
Method Details
-
getName
Deprecated.Returns the name of the argument.- Returns:
- the argument name
-
getDescription
Deprecated.Returns the description of the argument as a list of attributed strings.- Returns:
- the argument description
-
doArgNames
Deprecated.Creates a list of argument descriptions from a list of argument names. Each argument description will have an empty description.- Parameters:
names- the list of argument names- Returns:
- a list of argument descriptions
-