diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-10-20 14:13:01 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-10-30 10:02:42 +0100 |
commit | f7212773160d00d88f58c24147584cada0da5187 (patch) | |
tree | b9c17c8db8faa331d1ac99e391833d0be6e97424 | |
parent | 67c9cf99f223f8f4f2f5d503f4dc0b435d7409f2 (diff) | |
download | bundler-f7212773160d00d88f58c24147584cada0da5187.tar.gz |
Add "ex", and "exe" to "bundle exec" aliases
Since they were already consider aliases for `bundle help`.
-rw-r--r-- | lib/bundler/cli.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 70cc0ad78c..ea2d5c9de3 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -15,7 +15,7 @@ module Bundler "check" => "c", "install" => "i", "list" => "ls", - "exec" => "e", + "exec" => ["e", "ex", "exe"], "cache" => ["package", "pack"], "version" => ["-v", "--version"], }.freeze @@ -696,7 +696,8 @@ module Bundler def self.reformatted_help_args(args) bundler_commands = all_commands.keys help_flags = %w[--help -h] - exec_commands = %w[e ex exe exec] + exec_commands = ["exec"] + COMMAND_ALIASES["exec"] + help_used = args.index {|a| help_flags.include? a } exec_used = args.index {|a| exec_commands.include? a } command = args.find {|a| bundler_commands.include? a } |