public static class ArgumentParser.ArgumentParserCommand
extends java.lang.Object
Constructor and Description |
---|
ArgumentParserCommand() |
ArgumentParserCommand(java.lang.String cmd) |
Modifier and Type | Method and Description |
---|---|
void |
addCommand(java.lang.String command,
java.lang.String explanation) |
void |
addFlag(java.lang.String name,
java.lang.String description) |
void |
addOptionalParameter(java.lang.String par,
java.lang.String dvalue,
java.lang.String description) |
void |
addRequiredParameter(java.lang.String par,
java.lang.String description) |
boolean |
containsRequired() |
void |
explainMissing() |
double |
getAsDouble(java.lang.String opt) |
double[] |
getAsDoubleList(java.lang.String opt) |
int |
getAsInt(java.lang.String opt) |
int[] |
getAsIntList(java.lang.String opt) |
java.lang.String |
getAsString(java.lang.String opt) |
java.lang.String[] |
getAsStringList(java.lang.String opt) |
java.lang.String |
getCommand() |
java.util.List<java.lang.String> |
getInputList() |
java.lang.String |
getOption(java.lang.String opt) |
boolean |
hasOption(java.lang.String opt) |
void |
parse(java.lang.String[] args,
int startIndex) |
void |
printCommands() |
void |
printUsage(java.lang.String programName) |
void |
setCommand(java.lang.String cmd) |
void |
setListDeliminator(java.lang.String delim) |
void |
show() |
public ArgumentParserCommand()
public ArgumentParserCommand(java.lang.String cmd)
public java.lang.String getCommand()
public void setCommand(java.lang.String cmd)
public void addCommand(java.lang.String command, java.lang.String explanation)
public void printCommands()
public void setListDeliminator(java.lang.String delim)
public void addRequiredParameter(java.lang.String par, java.lang.String description)
public void addOptionalParameter(java.lang.String par, java.lang.String dvalue, java.lang.String description)
public void addFlag(java.lang.String name, java.lang.String description)
public void parse(java.lang.String[] args, int startIndex)
public java.lang.String getOption(java.lang.String opt)
public void printUsage(java.lang.String programName)
public void show()
public void explainMissing()
public boolean containsRequired()
public int getAsInt(java.lang.String opt)
public java.lang.String[] getAsStringList(java.lang.String opt)
public int[] getAsIntList(java.lang.String opt)
public double[] getAsDoubleList(java.lang.String opt)
public double getAsDouble(java.lang.String opt)
public java.lang.String getAsString(java.lang.String opt)
public java.util.List<java.lang.String> getInputList()
public boolean hasOption(java.lang.String opt)
JHepSim. A part of HSTOOLS. version-1.2