Uses of Interface
org.refcodes.cli.Option
-
-
Uses of Option in org.refcodes.cli
Classes in org.refcodes.cli that implement Option Modifier and Type Class Description class
AbstractOption<T>
TheAbstractOption
is an abstract implementation of anOption
providing the boiler plate when implementing theOption
interface.class
ArrayOption<T>
Creates an array representation facade for the encapsulatedOption
.class
CharOption
class
CleanFlag
A predefined cleanFlag
: A predefinedFlag
gives itsCleanFlag.SHORT_OPTION
, itsCleanFlag.LONG_OPTION
as well as itsCleanFlag.ALIAS
an according semantics regarded by other subsystems.class
ConfigOption
TheConfigOption
represents anOption
holding a value specifying a configuration resource (file).class
DaemonFlag
A predefined daemonFlag
: A predefinedFlag
gives itsDaemonFlag.SHORT_OPTION
, itsDaemonFlag.LONG_OPTION
as well as itsDaemonFlag.ALIAS
an according semantics regarded by other subsystems.class
DebugFlag
A predefined debugFlag
: A predefinedFlag
gives itsDebugFlag.SHORT_OPTION
, itsDebugFlag.LONG_OPTION
as well as itsDebugFlag.ALIAS
an according semantics regarded by other subsystems.class
DoubleOption
class
EnumOption<T extends Enum<T>>
The Class EnumOption.class
FileOption
class
Flag
TheFlag
class implements theOption
interface for representing either atrue
or afalse
state: When a flag is provided to your command line arguments, then it is considered to betrue
, when it is omitted, then it is considered to befalse
as ofFlag.isEnabled()
.class
FloatOption
class
ForceFlag
A predefined forceFlag
: A predefinedFlag
gives itsForceFlag.SHORT_OPTION
, itsForceFlag.LONG_OPTION
as well as itsForceFlag.ALIAS
an according semantics regarded by other subsystems.class
HelpFlag
A predefined helpFlag
: A predefinedFlag
gives itsHelpFlag.SHORT_OPTION
, itsHelpFlag.LONG_OPTION
as well as itsHelpFlag.ALIAS
an according semantics regarded by other subsystems.class
InitFlag
A predefined initFlag
: A predefinedFlag
gives itsInitFlag.SHORT_OPTION
, itsInitFlag.LONG_OPTION
as well as itsInitFlag.ALIAS
an according semantics regarded by other subsystems.class
IntOption
class
LongOption
class
QuietFlag
A predefined "be quiet"Flag
: A predefinedFlag
gives itsQuietFlag.SHORT_OPTION
, itsQuietFlag.LONG_OPTION
as well as itsQuietFlag.ALIAS
an according semantics regarded by other subsystems.class
StringOption
class
SysInfoFlag
A predefined system informationFlag
: A predefinedFlag
gives itsSysInfoFlag.SHORT_OPTION
, itsSysInfoFlag.LONG_OPTION
as well as itsSysInfoFlag.ALIAS
an according semantics regarded by other subsystems..class
VerboseFlag
A predefined verboseFlag
: A predefinedFlag
gives itsVerboseFlag.SHORT_OPTION
, itsVerboseFlag.LONG_OPTION
as well as itsVerboseFlag.ALIAS
an according semantics regarded by other subsystems.Methods in org.refcodes.cli with parameters of type Option Modifier and Type Method Description static <T> ArrayOption<T>
CliSugar. asArray(Option<T> aOption)
Creates an array representation facade for the encapsulatedOption
.static <T> ArrayOption<T>
CliSugar. asArray(Option<T> aOption, int aLength)
Creates an array representation facade for the encapsulatedOption
.static <T> ArrayOption<T>
CliSugar. asArray(Option<T> aOption, int aMinLength, int aMaxLength)
Creates an array representation facade for the encapsulatedOption
.static org.refcodes.struct.Relation<String,String>
CliUtility. getOptionArgument(Option<?> aOption, String[] aArgs, String[] aOptions)
default void
RootConditionAccessor.RootConditionMutator. setRootOption(Option<?> aRootOption)
Sets the root option for the root condition property.default B
RootConditionAccessor.RootConditionBuilder. withRootOption(Option<?> aRootOption)
Sets the root option for the root condition property.Constructors in org.refcodes.cli with parameters of type Option Constructor Description ArgsParserImpl(Option<?> aRootOption)
Constructs theArgsParser
instance with the given rootOption
and the defaultSyntaxNotation.REFCODES
.ArrayOption(Option<T> aOption)
Constructs theArrayOption
by encapsulating the givenOption
and providing its definition as array definition to the CLI.ArrayOption(Option<T> aOption, int aLength)
Constructs theArrayOption
by encapsulating the givenOption
and providing its definition as array definition to the CLI.ArrayOption(Option<T> aOption, int aMinLength, int aMaxLength)
Constructs theArrayOption
by encapsulating the givenOption
and providing its definition as array definition to the CLI.OptionCondition(Option<?> aArg)
-