public abstract class ArgHandler extends Object
| Constructor and Description |
|---|
ArgHandler() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getDefaultArgs() |
abstract String |
getPurpose() |
abstract String |
getTag() |
abstract String[] |
getTagArgs()
A list of words representing the arguments in help text.
|
abstract int |
handle(String[] args,
int tagIndex)
Attempts to process one flag or "extra" command-line argument (that appears
without a flag).
|
boolean |
isRequired() |
boolean |
isUndocumented() |
protected static final String[] EMPTY
public String[] getDefaultArgs()
public abstract String getPurpose()
public abstract String getTag()
public abstract String[] getTagArgs()
public abstract int handle(String[] args, int tagIndex)
args - the arguments passed in to main()tagIndex - 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()
public boolean isUndocumented()
Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.