public class CommandLineParser
extends java.lang.Object
Main.main(java.lang.String[]) method,
and turns it into a ConfigurationOptions object.| Constructor | Description |
|---|---|
CommandLineParser(java.lang.String[] args) |
Constructor for CommandLineParser
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
checkForRequiredArgs() |
|
protected boolean |
doChildrenSwitch(java.lang.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(java.lang.String switchName) |
|
protected java.lang.String |
popNextArg() |
public CommandLineParser(java.lang.String[] args)
args - the command line parameterspublic void parse()
throws ConfigurationException
ConfigurationOptions).ConfigurationException - if errors are present on the command lineprotected java.lang.String popNextArg()
protected void parseSwitch(java.lang.String switchName)
throws ConfigurationException
ConfigurationExceptionprotected boolean doChildrenSwitch(java.lang.String s)
throws ConfigurationException
s - ConfigurationExceptionprotected void checkForRequiredArgs()
throws ConfigurationException
ConfigurationExceptionprotected int getArgCount()
protected boolean isArgsEmpty()