     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]


  @doc """
  Runs Mix according to the command line arguments.
  """
  def main(args \\ System.argv()) do
    Mix.Local.append_archives()
    Mix.Local.append_paths()

    if env_variable_activated?("MIX_QUIET"), do: Mix.shell(Mix.Shell.Quiet)
    if env_variable_activated?("MIX_DEBUG"), do: Mix.debug(true)

    case check_for_shortcuts(args) do
      :help ->
        Mix.shell().info("Mix is a build tool for Elixir")
        display_usage()

      :version ->
        display_version()

      nil ->
        proceed(args)
    end
