You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
This is now available in master. It tries to get the name from the @Command(name = "...") annotation, otherwise from the first @Command(aliases = {"..", "..."}) alias. Should also work for programmatically constructed CommandSpec and CommandLine objects, without an annotated user object.
If no name is found, an InitializationException is thrown.
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: