public interface Option<T> extends Operand<T>
Option
represents a command line option with the according
option's value. An Option
can be seen as a key / value(s) pair
defined in the command line arguments parsed via the
Syntaxable.parseArgs(String[])
method.
An Option
has a state which changes with each invocation of the
Syntaxable.parseArgs(String[])
method.
org.refcodes.mixin.ValueAccessor.ValueBuilder<V,B extends org.refcodes.mixin.ValueAccessor.ValueBuilder<V,B>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V>, org.refcodes.mixin.ValueAccessor.ValueProperty<V>
org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<B extends org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<B>>, org.refcodes.mixin.DescriptionAccessor.DescriptionMutator, org.refcodes.mixin.DescriptionAccessor.DescriptionProperty
org.refcodes.mixin.TypeAccessor.TypeMutator, org.refcodes.mixin.TypeAccessor.TypeProperty
ArgsAccessor.ArgsMutator, ArgsAccessor.ArgsProperty
Modifier and Type | Method and Description |
---|---|
String |
getLongOption()
TODO: Make the option to be required without the hyphen-minuses "--"
Returns the long-option representing an
Option instance. |
String |
getShortOption()
Returns the short-option representing an
Option instance. |
getArgs, getParameterName, getValue
parseArgs, parseSyntax, toState, toSyntax
compareTo
String getShortOption()
Option
instance. A short
option usually is being prefixed with a single hyphen-minus "-" as
defined in ConsoleConsts.SHORT_OPTION_PREFIX
.String
.String getLongOption()
Option
instance. A long
option usually is being prefixed with a double hyphen-minus "--" as
defined in ConsoleConsts.LONG_OPTION_PREFIX
.String
.Copyright © 2016. All rights reserved.