Package net.sf.statcvs.output
Class CommandLineParser
java.lang.Object
net.sf.statcvs.output.CommandLineParser
Takes a command line, like given to the
Main.main(java.lang.String[])
method,
and turns it into a ConfigurationOptions
object.- Version:
- $Id: CommandLineParser.java,v 1.29 2009/08/19 22:11:15 benoitx Exp $
- Author:
- Richard Cyganiak invalid input: '<'rcyg@gmx.de>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected boolean
Give the argument to children classes that may have a way to recognise it.protected int
protected boolean
void
parse()
Parses the command line and sets the options (as static fields inConfigurationOptions
).protected void
parseSwitch
(String switchName) protected String
-
Constructor Details
-
CommandLineParser
Constructor for CommandLineParser- Parameters:
args
- the command line parameters
-
-
Method Details
-
parse
Parses the command line and sets the options (as static fields inConfigurationOptions
).- Throws:
ConfigurationException
- if errors are present on the command line
-
popNextArg
-
parseSwitch
- Throws:
ConfigurationException
-
doChildrenSwitch
Give the argument to children classes that may have a way to recognise it.- Parameters:
s
-- Returns:
- Throws:
ConfigurationException
-
checkForRequiredArgs
- Throws:
ConfigurationException
-
getArgCount
protected int getArgCount() -
isArgsEmpty
protected boolean isArgsEmpty()
-