net.sf.statcvs.output
public class CommandLineParser extends Object
Main.main(java.lang.String[])
method,
and turns it into a ConfigurationOptions
object.Constructor and Description |
---|
CommandLineParser(String[] args)
Constructor for CommandLineParser
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkForRequiredArgs() |
protected boolean |
doChildrenSwitch(String s)
Give the argument to children classes that may have a way to recognise it.
|
protected int |
getArgCount() |
protected boolean |
isArgsEmpty() |
void |
parse()
Parses the command line and sets the options (as static
fields in
ConfigurationOptions ). |
protected void |
parseSwitch(String switchName) |
protected String |
popNextArg() |
public CommandLineParser(String[] args)
args
- the command line parameterspublic void parse() throws ConfigurationException
ConfigurationOptions
).ConfigurationException
- if errors are present on the command lineprotected String popNextArg()
protected void parseSwitch(String switchName) throws ConfigurationException
ConfigurationException
protected boolean doChildrenSwitch(String s) throws ConfigurationException
s
- ConfigurationException
protected void checkForRequiredArgs() throws ConfigurationException
ConfigurationException
protected int getArgCount()
protected boolean isArgsEmpty()