public enum CommandLineOption extends Enum<CommandLineOption>
Enum Constant and Description |
---|
ACT_TO_AUDIT
Audit command line argument.
|
ACT_TO_GENERATE
Generation command line argument.
|
ACT_TO_SKELETON
Generate skeleton mete-data command line argument.
|
LICENSE_DESCRIPTION
License descriptor command line argument.
|
PRINT_HELP
Print help then exit, ignoring other options.
|
SOURCE
Application source command line argument.
|
Modifier and Type | Method and Description |
---|---|
org.apache.commons.cli.Option |
create()
Builds a representation.
|
String |
getDescription()
Gets the description for this option.
|
String |
getLongName()
Gets the long name of this command line argument.
|
String |
getOptionValue(org.apache.commons.cli.CommandLine commandLine)
Gets an option value from the command line.
|
char |
getShortName()
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 |
valueOf(String name)
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.
|
public static final CommandLineOption LICENSE_DESCRIPTION
public static final CommandLineOption SOURCE
public static final CommandLineOption ACT_TO_GENERATE
public static final CommandLineOption ACT_TO_AUDIT
public static final CommandLineOption ACT_TO_SKELETON
public static final CommandLineOption PRINT_HELP
public static CommandLineOption[] values()
for (CommandLineOption c : CommandLineOption.values()) System.out.println(c);
public static CommandLineOption valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static org.apache.commons.cli.Options options()
public String getLongName()
public char getShortName()
public String getDescription()
public org.apache.commons.cli.Option create()
public String getOptionValue(org.apache.commons.cli.CommandLine commandLine)
commandLine
- not nullpublic boolean isSetOn(org.apache.commons.cli.CommandLine commandLine)
commandLine
- not nullCopyright © 2011–2025 Apache Software Foundation. All rights reserved.