commander
commander copied to clipboard
Command aliases
It would be nice if we could define aliases for commands. For example like this:
cmd.commands.add do |cmd|
cmd.use = "console"
cmd.alias = "c"
cmd.short = "Runs a console"
cmd.long = cmd.short
cmd.run do |options, arguments|
# ...
end
end
Thanks for the suggestion. This'd be a nice addition. I'll look into this whenever I get around to it. Of course, anyone else is free to submit a PR if they want support for this sooner rather than later. 👍