File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1+ diff --git a/bundler/lib/bundler/vendor/thor/lib/thor.rb b/bundler/lib/bundler/vendor/thor/lib/thor.rb
2+ index bfd9f5c914..945bdbd551 100644
3+ --- a/bundler/lib/bundler/vendor/thor/lib/thor.rb
4+ +++ b/bundler/lib/bundler/vendor/thor/lib/thor.rb
5+ @@ -625,7 +625,7 @@ def normalize_command_name(meth) #:nodoc:
6+ # alias name.
7+ def find_command_possibilities(meth)
8+ len = meth.to_s.length
9+ - possibilities = all_commands.merge(map).keys.select { |n| meth == n[0, len] }.sort
10+ + possibilities = all_commands.reject { |_k, c| c.hidden? }.merge(map).keys.select { |n| meth == n[0, len] }.sort
11+ unique_possibilities = possibilities.map { |k| map[k] || k }.uniq
12+
13+ if possibilities.include?(meth)
14+
115diff --git a/bundler/lib/bundler/vendor/thor/lib/thor/runner.rb b/bundler/lib/bundler/vendor/thor/lib/thor/runner.rb
216index 95f8b16e31..f0ce6df96c 100644
317--- a/bundler/lib/bundler/vendor/thor/lib/thor/runner.rb
You can’t perform that action at this time.
0 commit comments