Fix --no-color not setting :ansi_enabled to false (#14229)

This commit is contained in:
tea☆
2025-01-26 14:10:20 +01:00
committed by José Valim
parent 8e61baacab
commit 55c05d943e
+1 -1
View File
@@ -301,7 +301,7 @@ defmodule Kernel.CLI do
end
defp parse_argv([~c"--no-color" | t], config) do
Application.put_env(:elixir, :ansi_enabled, true)
Application.put_env(:elixir, :ansi_enabled, false)
parse_argv(t, config)
end