# File lib/pry/command_set.rb, line 198
    def find_command_by_match_or_listing(match_or_listing)
      if commands[match_or_listing]
        cmd = commands[match_or_listing]
      else
        _, cmd = commands.find { |match, command| command.options[:listing] == match_or_listing }
      end

      raise ArgumentError, "Cannot find a command: '#{match_or_listing}'!" if !cmd
      cmd
    end