citty
citty copied to clipboard
Create alias for subcommand
Describe the feature
Hey! Sometimes we faced with a situation that we should create alias for subcommands. For example, pnpm i and pnpm install. The subcommand named i and subcommand named install is the same command.
The solution now is to create two subcommands with same value, like:
subCommands: { i: installCommand, install: installCommand }
But this looks not so elegant. Can we support alias parameter for defineCommand? I can work for my issue.
Additional information
- [X] Would you be willing to help implement this feature?
it's a good idea, but the help output should also be considered