-
Notifications
You must be signed in to change notification settings - Fork 422
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
addSubcommand without name or alias #611
Comments
Away from PC now, but this sounds reasonable. I’m thinking to throw an Thoughts? |
That makes sense to me. |
I'd love to include this in picocli-4.0, but there are a lot of items on the todo list for that release... Do you think you will be able to provide a pull request with unit tests? |
This is now available in master. It tries to get the name from the If no name is found, an Can you verify this works as expected? |
CommandLine.addSubcommand requires a string name and optionally an array of aliases. Would it be possible to add a version of addSubcommand that just takes in an Object and reads the name and aliases from the @command annotations? If the subcommands annotation can get the name and alias for subcommands, it seems like the programmatic way of adding subcommand should be able to as well.
The text was updated successfully, but these errors were encountered: