|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<UltraGetopt.Behavior>
name.kevinlocke.ultragetopt.UltraGetopt.Behavior
public static enum UltraGetopt.Behavior
Different behavior options for UltraGetopt.
| Enum Constant Summary | |
|---|---|
ACCEPT_OPTIONLIKE_OPT_ARGS
Accept option arguments which begin with a leader string. |
|
CASE_INSENSITIVE
Do argument matching case-insensitively. |
|
LONG_OPT_ADJACENT_ARG
Allow long options to have arguments which are adjacent to the option. |
|
NO_EAT_DASH_DASH
Include "--" in the list of non-option arguments if it appears on the command-line. |
|
NO_EXCEPTIONS
Do not throw exceptions upon encountering errors. |
|
NONOPTION_AS_ARGUMENT
Return non-option arguments as arguments to a null option. |
|
PARTIAL_MATCHING
Attempt to match long options against the list of accepted options. |
|
SEPARATED_OPTIONAL_ARGUMENT
Allow options with optional arguments to accept options which are not explicitly assigned. |
|
SHORT_OPTION_ASSIGN
Typically short options are not allowed to be assigned an argument (such as -o=file.txt). |
|
TRY_LONG_FIRST
Attempt to match options with a single leader character against the list of long options before attempting to match against short options. |
|
UNRECOGNIZED_AS_NONOPTARG
Return unrecognized long options as non-option arguments. |
|
| Method Summary | |
|---|---|
static UltraGetopt.Behavior |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static UltraGetopt.Behavior[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final UltraGetopt.Behavior CASE_INSENSITIVE
public static final UltraGetopt.Behavior ACCEPT_OPTIONLIKE_OPT_ARGS
public static final UltraGetopt.Behavior NO_EAT_DASH_DASH
public static final UltraGetopt.Behavior SEPARATED_OPTIONAL_ARGUMENT
--optionalarg arg would be interpreted as the option
"optionalarg" without an argument and "arg" as a non-option
argument. This behavioral option changes that behavior to interpret
"arg" as an argument to "optionalarg".
public static final UltraGetopt.Behavior SHORT_OPTION_ASSIGN
public static final UltraGetopt.Behavior NO_EXCEPTIONS
public static final UltraGetopt.Behavior PARTIAL_MATCHING
getopt_long_only in several C libraries.
public static final UltraGetopt.Behavior LONG_OPT_ADJACENT_ARG
public static final UltraGetopt.Behavior TRY_LONG_FIRST
getopt_long_only, available in many getopt
implementations libraries.
public static final UltraGetopt.Behavior NONOPTION_AS_ARGUMENT
getOrderedOptions.
Instead of not returning non-option arguments this behavior will
cause them to be returned in an OptionArgumentPair
where the option is set to null. This is useful for
programs which depend on the ordering of non-option arguments with
respect to the command-line options.
UltraGetopt.getOptionsOrdered()public static final UltraGetopt.Behavior UNRECOGNIZED_AS_NONOPTARG
UltraGetopt.getOptionsOrdered()| Method Detail |
|---|
public static UltraGetopt.Behavior[] values()
for (UltraGetopt.Behavior c : UltraGetopt.Behavior.values()) System.out.println(c);
public static UltraGetopt.Behavior valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||