public abstract static class UserOptions.RequiredArgSwitch
extends java.lang.Object
Constructor and Description |
---|
RequiredArgSwitch(int shortForm,
java.lang.String longName,
java.lang.String helpText,
java.lang.String argName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getArgumentName()
If the switch has an argument, what name should be used
to identify it in the help text.
|
boolean |
hasRequiredArgument()
Return
true if and only if, this command line switch
requires an argument. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processCommandSwitch
public RequiredArgSwitch(int shortForm, java.lang.String longName, java.lang.String helpText, java.lang.String argName)
public boolean hasRequiredArgument()
CommandLineSwitch
true
if and only if, this command line switch
requires an argument. If this method returns true
,
hasOptionalArgument should return false
.hasRequiredArgument
in interface CommandLineSwitch
true
implies that the switch take an optional
argument; false
implies that it does not.public java.lang.String getArgumentName()
CommandLineSwitch
getArgumentName
in interface CommandLineSwitch