de.qfs.lib.util
Interface ArgsParser.Arbitrator
- Enclosing interface:
- ArgsParser
- public static interface ArgsParser.Arbitrator
Interface to be implemented if the decision whether a command line
argument is a parameter or not should be made by the ArgParser's user.
Method Summary |
int |
isParameter(java.lang.String[] args,
int optIndex)
Decide wheter a command line argument is an option parameter or not.
|
isParameter
public int isParameter(java.lang.String[] args,
int optIndex)
- Decide wheter a command line argument is an option parameter or not.
This method will only be called under the following conditions:
- The option at optIndex has an optional parameter
- There are enough arguments
- Thre are no further options
- Parameters:
args
- The command line argument.optIndex
- The index of the option argument.
- Returns:
- -1 if no paramter, 0 if still undecided and 1 if there
is a parameter.