     System.get_env(name) in ~w(1 true)
   end
 
-  defp ensure_hex("local.hex"),
-    do: :ok
-  defp ensure_hex(_task),
-    do: Mix.Hex.ensure_updated?()
+  defp ensure_hex("local.hex"), do: :ok
+  defp ensure_hex(_task), do: Mix.Hex.ensure_updated?()
 
   defp ensure_no_slashes(task) do
     if String.contains?(task, "/") do

      nil
    else
      task = String.to_atom(task)
      Mix.Project.config[:preferred_cli_env][task] || Mix.Task.preferred_cli_env(task)
    end
  end

  defp load_dot_config do
    path = Path.join(Mix.Utils.mix_home, "config.exs")
    if File.regular?(path) do
      Mix.Task.run "loadconfig", [path]
    end
  end

  defp display_version do
    IO.puts :erlang.system_info(:system_version)
    IO.puts "Mix " <> System.build_info[:build]
  end

  defp display_usage do
    Mix.shell.info """

    Usage: mix [task]



  defp load_mix_exs() do
    file = System.get_env("MIX_EXS") || "mix.exs"

    _ =
      if File.regular?(file) do
        Code.load_file(file)
      end
  end

  defp get_task(["-" <> _ | _]) do
    task = "mix #{Mix.Project.config()[:default_task]}"

    Mix.shell().error(
      "** (Mix) Mix only recognizes the flags --help and --version.\n" <>
        "You may have wanted to invoke a task instead, such as #{inspect(task)}"
    )

    display_usage()
    exit({:shutdown, 1})
  end
