public abstract class ArgHandlerString extends ArgHandler
Constructor and Description |
---|
ArgHandlerString() |
Modifier and Type | Method and Description |
---|---|
int |
handle(java.lang.String[] args,
int startIndex)
Attempts to process one flag or "extra" command-line argument (that appears
without a flag).
|
abstract boolean |
setString(java.lang.String str) |
getDefaultArgs, getHelpTag, getPurpose, getTag, getTagArgs, getTags, isExperimental, isRequired, isUndocumented
public int handle(java.lang.String[] args, int startIndex)
ArgHandler
handle
in class ArgHandler
args
- the arguments passed in to main()startIndex
- an index into args indicating the first argument to use.
If this is a handler for a flag argument. Otherwise it's the index of the
"extra" argument.public abstract boolean setString(java.lang.String str)