Settings.setBoolean(Settings.KEYS.AUTO_UPDATE, value);
*/
+ @Deprecated
public Engine(boolean autoUpdate) {
if (autoUpdate) {
doUpdates();
diff --git a/src/main/java/org/owasp/dependencycheck/utils/CliParser.java b/src/main/java/org/owasp/dependencycheck/utils/CliParser.java
index 3f13cd1ea..689d0daa7 100644
--- a/src/main/java/org/owasp/dependencycheck/utils/CliParser.java
+++ b/src/main/java/org/owasp/dependencycheck/utils/CliParser.java
@@ -160,9 +160,6 @@ public final class CliParser {
final Option help = new Option(ArgumentName.HELP_SHORT, ArgumentName.HELP, false,
"print this message.");
- final Option advancedHelp = new Option(ArgumentName.ADVANCED_HELP_SHORT, ArgumentName.ADVANCED_HELP, false,
- "shows additional help regarding properties file.");
-
final Option deepScan = new Option(ArgumentName.PERFORM_DEEP_SCAN_SHORT, ArgumentName.PERFORM_DEEP_SCAN, false,
"extracts extra information from dependencies that may increase false positives, but also decrease false negatives.");
@@ -176,6 +173,18 @@ public final class CliParser {
.withDescription("the name of the application being scanned.")
.create(ArgumentName.APPNAME_SHORT);
+ final Option connectionTimeout = OptionBuilder.withArgName("timeout").hasArg().withLongOpt(ArgumentName.CONNECTION_TIMEOUT)
+ .withDescription("the connection timeout (in milliseconds) to use when downloading resources.")
+ .create(ArgumentName.CONNECTION_TIMEOUT_SHORT);
+
+ final Option proxyUrl = OptionBuilder.withArgName("url").hasArg().withLongOpt(ArgumentName.PROXY_URL)
+ .withDescription("the proxy url to use when downloading resources.")
+ .create(ArgumentName.PROXY_URL_SHORT);
+
+ final Option proxyPort = OptionBuilder.withArgName("port").hasArg().withLongOpt(ArgumentName.PROXY_PORT)
+ .withDescription("the proxy port to use when downloading resources.")
+ .create(ArgumentName.PROXY_PORT_SHORT);
+
final Option path = OptionBuilder.withArgName("path").hasArg().withLongOpt(ArgumentName.SCAN)
.withDescription("the path to scan - this option can be specified multiple times.")
.create(ArgumentName.SCAN_SHORT);
@@ -192,8 +201,6 @@ public final class CliParser {
.withDescription("the output format to write to (XML, HTML, ALL).")
.create(ArgumentName.OUTPUT_FORMAT_SHORT);
- //TODO add the ability to load a properties file to override the defaults...
-
final OptionGroup og = new OptionGroup();
og.addOption(path);
@@ -207,7 +214,9 @@ public final class CliParser {
opts.addOption(noupdate);
opts.addOption(deepScan);
opts.addOption(props);
- opts.addOption(advancedHelp);
+ opts.addOption(proxyPort);
+ opts.addOption(proxyUrl);
+ opts.addOption(connectionTimeout);
return opts;
}
@@ -245,16 +254,6 @@ public final class CliParser {
public void printHelp() {
final HelpFormatter formatter = new HelpFormatter();
final String nl = System.getProperty("line.separator");
- String advancedHelp = null;
- if (line != null && line.hasOption(ArgumentName.ADVANCED_HELP)) {
- advancedHelp = nl + nl
- + "Additionally, the following properties are supported and can be specified either"
- + "using the -p Prints the manifest information to standard output.
*