     aliases = Enum.filter(load_aliases(), fn {name, _} -> String.contains?(name, pattern) end)
 
     {docs, max} = build_doc_list(modules, aliases)
-
     display_doc_list(docs, max)
   end
 


    cond do
      has_alias? and has_task? ->
        [alias_doc(aliases[task]), task_doc(task)]

      has_alias? ->
        [alias_doc(aliases[task])]

      true ->
        [task_doc(task)]
    end
  end

  defp alias_doc(task_name) do
    doc = "Alias for " <> inspect(task_name)
    {doc, "mix.exs"}
  end

  defp task_doc(task) do
    module = Mix.Task.get!(task)
    doc = Mix.Task.moduledoc(module) || "There is no documentation for this task"
    {doc, where_is_file(module)}
  end
end

        opts
      end

    for doc <- verbose_doc(task) do
      print_doc(task, doc, opts)
    end
  end

