# File lib/pry/commands/help.rb, line 42
    def display_index(groups)
      help_text = []

      sorted_group_names(groups).each do |group_name|
        commands = sorted_commands(groups[group_name])

        if commands.any?
           help_text << help_text_for_commands(group_name, commands)
        end
      end

      _pry_.pager.page help_text.join("\n\n")
    end