Skip to content

Commit f7a37c5

Browse files
🐛 fix product description missing in CLI help (#227)
1 parent b27c1bd commit f7a37c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/mindee/CommandLineInterface.java

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public static void main(String[] args) {
9999
CommandLine.Command annotation = method.getAnnotation(CommandLine.Command.class);
100100
String subcommandName = annotation.name();
101101
CommandLine subCmd = new CommandLine(new ProductCommandHandler(products, method));
102+
subCmd.getCommandSpec().usageMessage().description(annotation.description());
102103
commandLine.addSubcommand(subcommandName, subCmd);
103104
}
104105
}

0 commit comments

Comments
 (0)