-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Different description based on display context #429
Comments
Also, I couldn't find any documentation on how multiple descriptions are handled by picocli rather than a single one with newlines in it. |
Hi, picocli already shows a different description based on display context: only the first line of the header or description (header if both are defined) is shown in the subcommands listing as the brief description for each subcommand. As for adding documentation for embedded newlines, I need to take another look. |
If #430 is solved, then yes, perfect. Going to test your change now... |
Hey @remkop, awesome library! Such granular control, yet I still need more (or I'm doing it wrong) :)
Ok, so here's my case: I'm generating my CLI command tree using the programmatic API (thanks for including that btw), but I have two description types: an abbreviated one and an elaborate man-page kind of description.
I would like to use the abbreviated description for commands when listed as sub commands under Commands:, and the man-page-like description when --help is triggered directly on the command.
Is it possible to do this?
The text was updated successfully, but these errors were encountered: