|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.owasp.dependencycheck.cli.CliParser
public final class CliParser
A utility to parse command line arguments for the DependencyCheck.
| Nested Class Summary | |
|---|---|
static class |
CliParser.ArgumentName
A collection of static final strings that represent the possible command line arguments. |
| Constructor Summary | |
|---|---|
CliParser()
|
|
| Method Summary | |
|---|---|
String |
getApplicationName()
Returns the application name specified on the command line. |
String |
getConnectionTimeout()
Returns the connection timeout. |
String |
getDataDirectory()
Get the value of dataDirectory. |
String |
getProxyPort()
Returns the proxy port. |
String |
getProxyUrl()
Returns the proxy url. |
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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CliParser()
| Method Detail |
|---|
public void parse(String[] args)
throws FileNotFoundException,
org.apache.commons.cli.ParseException
args - the command line arguments
FileNotFoundException - 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 getDataDirectory()
public void printVersionInfo()
Prints the manifest information to standard output.
public boolean isAutoUpdate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||