-
Problem: Support two descriptions for a subcommand,
I'm new to picocli, so maybe there is a way to do this, but I haven't figured it out yet reading the docs and experimenting. Seems like help parsing and usage message generation happen before any call to the subcommand (my subcommands are annotated classes that implement Callable), and in fact short circuit that call. Hard to see where I can inject control and alter the description in the usage message based on the invocation context. I was able to crudely approximate this with an additional Context:
For
For
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
From memory: I believe that if you set |
Beta Was this translation helpful? Give feedback.
From memory: I believe that if you set
help=true
(instead ofusageHelp = true
) on your--long-help
option, the command line does not need to be valid, but it won't short-circuit and your command will be invoked.This should give you the chance to print a custom help message.