diff --git a/devtools/cli/src/main/java/io/quarkus/cli/QuarkusCli.java b/devtools/cli/src/main/java/io/quarkus/cli/QuarkusCli.java index be09f9207e77a..0551ebb9abddd 100644 --- a/devtools/cli/src/main/java/io/quarkus/cli/QuarkusCli.java +++ b/devtools/cli/src/main/java/io/quarkus/cli/QuarkusCli.java @@ -185,6 +185,11 @@ public Optional checkMissingCommand(CommandLine root, String[] args) { return Optional.empty(); } catch (UnmatchedArgumentException e) { return Optional.of(args[0]); + } catch (Exception e) { + // For any other exceptions (e.g. MissingParameterException), we should just ignore. + // The problem is not that the command is missing but that the options might not be adequate. + // This will be handled by Picocli at a later step. + return Optional.empty(); } }