public class UserOptions.RepositoryPathSwitch extends UserOptions.RequiredArgSwitch
Constructor and Description |
---|
RepositoryPathSwitch() |
Modifier and Type | Method and Description |
---|---|
void |
processCommandSwitch(java.lang.String optarg)
This method is called when the Babel end user specifies this command
line switch on the command line.
|
getArgumentName, hasRequiredArgument
public final void processCommandSwitch(java.lang.String optarg) throws InvalidArgumentException
CommandLineSwitch
optarg
- this argument will be null if the command line switch
doesn't take a required argument (i.e., CommandLineSwitch.hasRequiredArgument()
is false
) or if the command line switch takes an
optional argument (i.e., CommandLineSwitch.hasOptionalArgument()
is
true
) and an argument wasn't provided; otherwise, the
argument is a non-null string including the text from the command line.InvalidArgumentException
- this indicates
that the command line argument provided is wrong somehow. For example,
if the argument should be an integer and the input isn't a valid
integer, throw this exception.