def usage_info(map)
      keys = map.keys
      commands_column_width = keys.max_by(&:length).length + 1
      commands_column_width += 2 if commands_column_width < 12

      # iterate through each of the commands, create an array
      # of strings in a `<command>  #  <description>` format. Sort
      # them alphabetically, and then join them with new lines.
      keys.map { |key|
        command = "  #{key}"
        command += (' ' * (commands_column_width - key.length + 1))
        command += "#  #{map[key][:description]}"
        command
      }.sort_by{ |k| k.downcase }.join("\n")
    end
def usage_info(map)
      keys = map.keys
      commands_column_width = keys.max_by(&:length).length + 1
      commands_column_width += 2 if commands_column_width < 12

      # iterate through each of the commands, create an array
      # of strings in a `<command>  #  <description>` format. Sort
      # them alphabetically, and then join them with new lines.
      keys.map { |key|
        command = "  #{key}"
        command += (' ' * (commands_column_width - key.length + 1))
        command += "#  #{map[key][:description]}"
        command
      }.sort_by{ |k| k.downcase }.join("\n")
    end
Format a map of commands into help output format