Skip to content
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

Command aliases #12

Open
phortx opened this issue Jul 23, 2017 · 1 comment
Open

Command aliases #12

phortx opened this issue Jul 23, 2017 · 1 comment
Labels

Comments

@phortx
Copy link

phortx commented Jul 23, 2017

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
@mrrooijen
Copy link
Owner

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. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants