public abstract static class UserOptions.RequiredArgSwitch
extends java.lang.Object
| Constructor and Description |
|---|
UserOptions.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, waitprocessCommandSwitchpublic UserOptions.RequiredArgSwitch(int shortForm,
java.lang.String longName,
java.lang.String helpText,
java.lang.String argName)
public boolean hasRequiredArgument()
CommandLineSwitchtrue if and only if, this command line switch
requires an argument. If this method returns true,
hasOptionalArgument should return false.hasRequiredArgument in interface CommandLineSwitchtrue implies that the switch take an optional
argument; false implies that it does not.public java.lang.String getArgumentName()
CommandLineSwitchgetArgumentName in interface CommandLineSwitch