public enum CommandLineOption extends Enum<CommandLineOption>
Enum Constant and Description |
---|
FILE_ARGUMENT |
FORCE_OPTION |
HELP_DESC_OPTION |
HELP_OPTION |
INVALID_OPTION |
SHOW_LINES_OPTION |
Modifier and Type | Field and Description |
---|---|
private String |
option |
private int |
skipArgs |
Modifier and Type | Method and Description |
---|---|
static CommandLineOption |
getCommandLineOption(String arg) |
String |
getOption() |
int |
getSkipArgs() |
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 INVALID_OPTION
public static final CommandLineOption SHOW_LINES_OPTION
public static final CommandLineOption FORCE_OPTION
public static final CommandLineOption HELP_OPTION
public static final CommandLineOption HELP_DESC_OPTION
public static final CommandLineOption FILE_ARGUMENT
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 int getSkipArgs()
public static CommandLineOption getCommandLineOption(String arg)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses