public static enum NBootOptionSpec.Arity extends Enum<NBootOptionSpec.Arity>
| Enum Constant and Description |
|---|
FLAG
Boolean toggle.
|
OPTIONAL_VALUE
Value is optional and, if present, must be attached via '='.
|
TERMINAL
Once matched, everything remaining belongs to the delegated command/app — out of nuts' own completion scope.
|
VALUE
Requires a value: attached via '=' in the same token, or read from the next token if not attached.
|
| Modifier and Type | Method and Description |
|---|---|
static NBootOptionSpec.Arity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NBootOptionSpec.Arity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NBootOptionSpec.Arity FLAG
public static final NBootOptionSpec.Arity VALUE
public static final NBootOptionSpec.Arity OPTIONAL_VALUE
public static final NBootOptionSpec.Arity TERMINAL
public static NBootOptionSpec.Arity[] values()
for (NBootOptionSpec.Arity c : NBootOptionSpec.Arity.values()) System.out.println(c);
public static NBootOptionSpec.Arity 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 nullCopyright © 2026 vpc open source initiative. All rights reserved.