public class ArgHandlerNoopDeprecatedFlag extends ArgHandler
Constructor and Description |
---|
ArgHandlerNoopDeprecatedFlag(int numberOfArgumentsToConsume,
String... tags) |
ArgHandlerNoopDeprecatedFlag(String... tags) |
Modifier and Type | Method and Description |
---|---|
String |
getPurpose() |
String |
getTag() |
String[] |
getTagArgs()
A list of words representing the arguments in help text.
|
protected String |
getWarningMessage(String tag) |
int |
handle(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, String... tags)
public ArgHandlerNoopDeprecatedFlag(String... tags)
public boolean isUndocumented()
isUndocumented
in class ArgHandler
public String getPurpose()
getPurpose
in class ArgHandler
public String getTag()
getTag
in class ArgHandler
public String[] getTagArgs()
ArgHandler
getTagArgs
in class ArgHandler
public int handle(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.Copyright © 2018. All rights reserved.