Skip to content

Commit f594b17

Browse files
committed
Disable "auto" alternative in -color flag
1 parent a5db35d commit f594b17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dotty/tools/dotc/config/ScalaSettings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ScalaSettings extends Settings.SettingGroup {
2828
val help = BooleanSetting("-help", "Print a synopsis of standard options")
2929
val nowarn = BooleanSetting("-nowarn", "Generate no warnings.")
3030
val print = BooleanSetting("-print", "Print program with Scala-specific features removed.")
31-
val color = ChoiceSetting("-color", "mode", "Colored output", List("always", "never", "auto"), "auto")
31+
val color = ChoiceSetting("-color", "mode", "Colored output", List("always", "never"/*, "auto"*/), "always"/* "auto"*/)
3232
val target = ChoiceSetting("-target", "target", "Target platform for object files. All JVM 1.5 targets are deprecated.",
3333
List("jvm-1.5", "jvm-1.5-fjbg", "jvm-1.5-asm", "jvm-1.6", "jvm-1.7", "jvm-1.8", "msil"),
3434
"jvm-1.8")

src/dotty/tools/dotc/core/Contexts.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ object Contexts {
372372

373373
/** Should use colors when printing? */
374374
def useColors: Boolean =
375-
List("auto", "always") contains base.settings.color.value
375+
base.settings.color.value == "always"
376376

377377
/** A condensed context containing essential information of this but
378378
* no outer contexts except the initial context.

0 commit comments

Comments
 (0)