   end
 
   defp get_task([]) do
-    case Mix.Project.get do
+    case Mix.Project.get() do
       nil ->
-        Mix.shell.error "** (Mix) \"mix\" with no arguments must be executed in a directory with a mix.exs file"
+        Mix.shell().error(
+          "** (Mix) \"mix\" with no arguments must be executed in a directory with a mix.exs file"
+        )
+
         display_usage()
         exit({:shutdown, 1})
+
       _ ->
-        {Mix.Project.config[:default_task], []}
+        {Mix.Project.config()[:default_task], []}
     end
   end
 
   defp run_task(name, args) do
     try do
       ensure_no_slashes(name)
-      Mix.Task.run "loadconfig"
-      Mix.Task.run name, args
+      Mix.Task.run("loadconfig")
+      Mix.Task.run(name, args)
     rescue
       # We only rescue exceptions in the Mix namespace, all
       # others pass through and will explode on the users face
       exception ->
-        stacktrace = System.stacktrace
+        stacktrace = System.stacktrace()
 
-        if Map.get(exception, :mix) && not Mix.debug? do
+        if Map.get(exception, :mix) && not Mix.debug?() do
           mod = exception.__struct__ |> Module.split() |> Enum.at(0, "Mix")
-          Mix.shell.error "** (#{mod}) #{Exception.message(exception)}"
+          Mix.shell().error("** (#{mod}) #{Exception.message(exception)}")
           exit({:shutdown, 1})
         else
           reraise exception, stacktrace

  @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


  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
