public static class ArgumentParser.ArgumentParserCommand extends Object
Constructor and Description |
---|
ArgumentParserCommand() |
ArgumentParserCommand(String cmd) |
Modifier and Type | Method and Description |
---|---|
void |
addCommand(String command,
String explanation) |
void |
addFlag(String name,
String description) |
void |
addOptionalParameter(String par,
String dvalue,
String description) |
void |
addRequiredParameter(String par,
String description) |
boolean |
containsRequired() |
void |
explainMissing() |
double |
getAsDouble(String opt) |
double[] |
getAsDoubleList(String opt) |
int |
getAsInt(String opt) |
int[] |
getAsIntList(String opt) |
String |
getAsString(String opt) |
String[] |
getAsStringList(String opt) |
String |
getCommand() |
List<String> |
getInputList() |
String |
getOption(String opt) |
boolean |
hasOption(String opt) |
void |
parse(String[] args,
int startIndex) |
void |
printCommands() |
void |
printUsage(String programName) |
void |
setCommand(String cmd) |
void |
setListDeliminator(String delim) |
void |
show() |
public ArgumentParserCommand()
public ArgumentParserCommand(String cmd)
public String getCommand()
public void setCommand(String cmd)
public void printCommands()
public void setListDeliminator(String delim)
public void addOptionalParameter(String par, String dvalue, String description)
public void parse(String[] args, int startIndex)
public void printUsage(String programName)
public void show()
public void explainMissing()
public boolean containsRequired()
public int getAsInt(String opt)
public int[] getAsIntList(String opt)
public double[] getAsDoubleList(String opt)
public double getAsDouble(String opt)
public boolean hasOption(String opt)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics