Package org.apache.creadur.whisker.cli
Enum CommandLineOption
- All Implemented Interfaces:
Serializable
,Comparable<CommandLineOption>
,java.lang.constant.Constable
Describes an option on the command line.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAudit command line argument.Generation command line argument.Generate skeleton mete-data command line argument.License descriptor command line argument.Print help then exit, ignoring other options.Application source command line argument. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.cli.Option
create()
Builds a representation.Gets the description for this option.Gets the long name of this command line argument.getOptionValue
(org.apache.commons.cli.CommandLine commandLine) Gets an option value from the command line.char
Gets the short name of this command line argument.boolean
isSetOn
(org.apache.commons.cli.CommandLine commandLine) Is the short name option set?static org.apache.commons.cli.Options
options()
Creates options for the command line.static CommandLineOption
Returns the enum constant of this type with the specified name.static CommandLineOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LICENSE_DESCRIPTION
License descriptor command line argument. -
SOURCE
Application source command line argument. -
ACT_TO_GENERATE
Generation command line argument. -
ACT_TO_AUDIT
Audit command line argument. -
ACT_TO_SKELETON
Generate skeleton mete-data command line argument. -
PRINT_HELP
Print help then exit, ignoring other options.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
options
public static org.apache.commons.cli.Options options()Creates options for the command line.- Returns:
- not null
-
getLongName
Gets the long name of this command line argument.- Returns:
- not null
-
getShortName
public char getShortName()Gets the short name of this command line argument.- Returns:
- the character short for this option
-
getDescription
Gets the description for this option.- Returns:
- not null
-
create
public org.apache.commons.cli.Option create()Builds a representation.- Returns:
- not null
-
getOptionValue
Gets an option value from the command line.- Parameters:
commandLine
- not null- Returns:
- not null
-
isSetOn
public boolean isSetOn(org.apache.commons.cli.CommandLine commandLine) Is the short name option set?- Parameters:
commandLine
- not null- Returns:
- true when the option is present, false otherwise
-