public interface Argument extends SwitchOrArgument
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARGUMENT_FORMAT
Format for arguments.
|
Modifier and Type | Method and Description |
---|---|
default int |
getMaximalCount()
Get the maximum number of times this argument might appear on the command line.
|
default int |
getMinimalCount()
Get the minimum number of times this argument might appear on the command line.
|
default boolean |
isOptional()
Default implementation which used the
minimal count
to decide whether this is optional. |
default boolean |
isSwitch()
Default implementation which returns
false . |
consumeArgument, getAppearance, getDescription
static final java.lang.String ARGUMENT_FORMAT
default int getMinimalCount()
1
.default int getMaximalCount()
getMinimalCount()
Integer.MAX_VALUE
for infinitydefault boolean isSwitch()
false
.isSwitch
in interface SwitchOrArgument
false
default boolean isOptional()
minimal count
to decide whether this is optional.isOptional
in interface SwitchOrArgument
true
when minimal count is 0
, false
otherwise