method
find_command_possibilities
v2_4_6 -
Show latest stable
- Class:
Gem::CommandManager
find_command_possibilities(cmd_name)public
No documentation available.
# File lib/rubygems/command_manager.rb, line 188
def find_command_possibilities(cmd_name)
len = cmd_name.length
found = command_names.select { |name| cmd_name == name[0, len] }
exact = found.find { |name| name == cmd_name }
exact ? [exact] : found
end