summaryrefslogtreecommitdiffstats
path: root/tools/tools-common/src
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tools-common/src')
-rw-r--r--tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/CliParser.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/CliParser.java b/tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/CliParser.java
index 31692dc21..dfaafbd25 100644
--- a/tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/CliParser.java
+++ b/tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/CliParser.java
@@ -34,7 +34,6 @@ import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
-import org.apache.commons.cli.ParseException;
/**
* Application CLI parser.
@@ -80,7 +79,7 @@ public class CliParser {
final CommandLineParser parser = new DefaultParser();
try {
cmd = parser.parse(options, args);
- } catch (final ParseException ex) {
+ } catch (final Exception ex) {
Console.CONSOLE.error("Parsing failed, see reason and cause below");
Console.CONSOLE.stacktrace(ex);
}