
public abstract class ArgHandlerExtra extends ArgHandler
| Constructor and Description |
|---|
ArgHandlerExtra() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
addExtraArg(String arg)
Processes the given "extra" argument.
|
String |
getTag() |
int |
handle(String[] args,
int startIndex)
Attempts to process one flag or "extra" command-line argument (that appears
without a flag).
|
boolean |
isRequired() |
getDefaultArgs, getHelpTag, getPurpose, getTagArgs, getTags, isExperimental, isUndocumentedpublic abstract boolean addExtraArg(String arg)
public final String getTag()
getTag in class ArgHandlerpublic int handle(String[] args, int startIndex)
ArgHandlerhandle in class ArgHandlerargs - 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 boolean isRequired()
isRequired in class ArgHandlerCopyright © 2018. All rights reserved.