public class ArgHandlerNoopDeprecatedFlag extends ArgHandler
Constructor and Description |
---|
ArgHandlerNoopDeprecatedFlag(int numberOfArgumentsToConsume,
java.lang.String... tags) |
ArgHandlerNoopDeprecatedFlag(java.lang.String... tags) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPurpose() |
java.lang.String |
getTag() |
java.lang.String[] |
getTagArgs()
A list of words representing the arguments in help text.
|
protected java.lang.String |
getWarningMessage(java.lang.String tag) |
int |
handle(java.lang.String[] args,
int startIndex)
Attempts to process one flag or "extra" command-line argument (that appears
without a flag).
|
boolean |
isUndocumented() |
getDefaultArgs, getHelpTag, getTags, isExperimental, isRequired
public ArgHandlerNoopDeprecatedFlag(int numberOfArgumentsToConsume, java.lang.String... tags)
public ArgHandlerNoopDeprecatedFlag(java.lang.String... tags)
public boolean isUndocumented()
isUndocumented
in class ArgHandler
public java.lang.String getPurpose()
getPurpose
in class ArgHandler
public java.lang.String getTag()
getTag
in class ArgHandler
public java.lang.String[] getTagArgs()
ArgHandler
getTagArgs
in class ArgHandler
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.protected java.lang.String getWarningMessage(java.lang.String tag)