From 9e4ab5afc41145e388d25ac0379ea618408168ea Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Thu, 19 Jan 2023 07:10:53 -0500 Subject: [PATCH] fix: add missing setting configuration for cli --- cli/src/main/java/org/owasp/dependencycheck/App.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/src/main/java/org/owasp/dependencycheck/App.java b/cli/src/main/java/org/owasp/dependencycheck/App.java index 1abfc652667..d259d81e5f8 100644 --- a/cli/src/main/java/org/owasp/dependencycheck/App.java +++ b/cli/src/main/java/org/owasp/dependencycheck/App.java @@ -502,6 +502,10 @@ protected void populateSettings(CliParser cli) throws InvalidSettingException { cli.getStringArgument(CliParser.ARGUMENT.RETIREJS_URL_PASSWORD)); settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_RETIREJS_FORCEUPDATE, cli.hasOption(CliParser.ARGUMENT.RETIRE_JS_FORCEUPDATE)); + settings.setStringIfNotNull(Settings.KEYS.ANALYZER_RETIREJS_FILTERS, + cli.getStringArgument(CliParser.ARGUMENT.RETIREJS_FILTERS)); + settings.setBooleanIfNotNull(Settings.KEYS.ANALYZER_RETIREJS_FILTER_NON_VULNERABLE, + cli.hasOption(CliParser.ARGUMENT.RETIREJS_FILTER_NON_VULNERABLE)); settings.setBoolean(Settings.KEYS.ANALYZER_JAR_ENABLED, !cli.hasDisableOption(CliParser.ARGUMENT.DISABLE_JAR, Settings.KEYS.ANALYZER_JAR_ENABLED)); settings.setBoolean(Settings.KEYS.ANALYZER_MSBUILD_PROJECT_ENABLED,