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); } }