public final class CliParser extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CliParser.ArgumentName
A collection of static final strings that represent the possible command
line arguments.
|
| Constructor and Description |
|---|
CliParser() |
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationName()
Returns the application name specified on the command line.
|
String |
getConnectionTimeout()
Returns the connection timeout.
|
String |
getDataDirectory()
Get the value of dataDirectory.
|
File |
getPropertiesFile()
Returns the properties file specified on the command line.
|
String |
getProxyPassword()
Returns the proxy password.
|
String |
getProxyPort()
Returns the proxy port.
|
String |
getProxyUrl()
Returns the proxy url.
|
String |
getProxyUsername()
Returns the proxy username.
|
String |
getReportDirectory()
Returns the directory to write the reports to specified on the command
line.
|
String |
getReportFormat()
Returns the output format specified on the command line.
|
String[] |
getScanFiles()
Retrieves the file command line parameter(s) specified for the 'scan'
argument.
|
String |
getSuppressionFile()
Returns the path to the suppression file.
|
String |
getVerboseLog()
Returns the path to the verbose log file.
|
boolean |
isAutoUpdate()
Checks if the auto update feature has been disabled.
|
boolean |
isGetHelp()
Determines if the 'help' command line argument was passed in.
|
boolean |
isGetVersion()
Determines if the 'version' command line argument was passed in.
|
boolean |
isRunScan()
Determines if the 'scan' command line argument was passed in.
|
void |
parse(String[] args)
Parses the arguments passed in and captures the results for later use.
|
void |
printHelp()
Displays the command line help message to the standard output.
|
void |
printVersionInfo()
Prints the manifest information to standard output.
|
public void parse(String[] args) throws FileNotFoundException, org.apache.commons.cli.ParseException
args - the command line argumentsFileNotFoundException - is thrown when a 'file' argument does not
point to a file that exists.org.apache.commons.cli.ParseException - is thrown when a Parse Exception occurs.public boolean isGetVersion()
public boolean isGetHelp()
public boolean isRunScan()
public void printHelp()
public String[] getScanFiles()
public String getReportDirectory()
public String getReportFormat()
public String getApplicationName()
public String getConnectionTimeout()
public String getProxyUrl()
public String getProxyPort()
public String getProxyUsername()
public String getProxyPassword()
public String getDataDirectory()
public File getPropertiesFile()
public String getVerboseLog()
public String getSuppressionFile()
public void printVersionInfo()
Prints the manifest information to standard output.
public boolean isAutoUpdate()
Copyright © 2012–2014 OWASP. All rights reserved.