-
Notifications
You must be signed in to change notification settings - Fork 446
Closed
Labels
Description
Hi,
Moving from commons-cli to picocli both using annotation and programmatic API, it is really nice!
- Using something very similar to the documentation regarding the add of the help subcommand, I got an 'help help' message like the following:
Displays help information about the specified command
Usage: Main help [-h] [COMMAND...]
When no COMMAND is given, the usage help for the main command is displayed.
If a COMMAND is specified, the help for that command is shown.
[COMMAND...] The COMMAND to display the usage help message for.
-h, --help Show usage help for the help command and exit.
Why displaying [COMMAND...] and not just [COMMAND], does help for multiple commands in one run possible?
Because in my simple test case, it always displays help for the first command only.
2. Could it be a long-term dev to have a third approach using an externalized declaration file similar to what is done in JPA/ORM for which can be used annotations, runtime/programmatic API, and XML (or another format)? Is there any standard that could be interesting to look at for this? (in the scope of CWL?)
3. I don't despair of making my case with many subcommands works using only the programmatic API!!
Thanks