Package org.moeaframework.util.cli
Enum Class OptionStyle
- All Implemented Interfaces:
Serializable
,Comparable<OptionStyle>
,Constable
Determines how options are styled when displaying a usage string for a command line utility.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDisplays all options, with non-required options surrounded by"["
and"]"
.No individual options are displayed, only the catch-all"[options]"
.Displays only required options. -
Method Summary
Modifier and TypeMethodDescriptionstatic OptionStyle
Returns the enum constant of this class with the specified name.static OptionStyle[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No individual options are displayed, only the catch-all"[options]"
. -
REQUIRED_ONLY
Displays only required options. -
ALL
Displays all options, with non-required options surrounded by"["
and"]"
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-