public interface SwitchOrArgument
Modifier and Type | Method and Description |
---|---|
boolean |
consumeArgument(java.lang.String arg)
Read further arguments from the command line.
|
java.lang.String |
getAppearance()
Get the appearance of this switch or argument on the command line.
|
java.lang.String |
getDescription()
Get a short description for this switch.
|
boolean |
isOptional()
Is this argument optional?
|
boolean |
isSwitch()
Is this a switch?
|
boolean isSwitch()
boolean isOptional()
true
when this switch or argument is optional, false
if it is required@NotNull java.lang.String getAppearance()
@NotNull java.lang.String getDescription()
boolean consumeArgument(@NotNull java.lang.String arg)
arg
- argument