From 1fa3764cd0086bc8d9f2243d1d38ae4c8903683c Mon Sep 17 00:00:00 2001 From: sebastianMindee Date: Fri, 21 Mar 2025 10:12:31 +0100 Subject: [PATCH] :bug: fix product description missing in CLI help --- src/main/java/com/mindee/CommandLineInterface.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/mindee/CommandLineInterface.java b/src/main/java/com/mindee/CommandLineInterface.java index e7cd4943e..8e5ea71f6 100644 --- a/src/main/java/com/mindee/CommandLineInterface.java +++ b/src/main/java/com/mindee/CommandLineInterface.java @@ -99,6 +99,7 @@ public static void main(String[] args) { CommandLine.Command annotation = method.getAnnotation(CommandLine.Command.class); String subcommandName = annotation.name(); CommandLine subCmd = new CommandLine(new ProductCommandHandler(products, method)); + subCmd.getCommandSpec().usageMessage().description(annotation.description()); commandLine.addSubcommand(subcommandName, subCmd); } }