Skip to content

Commit fce04dc

Browse files
noti0na1tgodzik
authored andcommitted
Rename setting name
1 parent c93f4f4 commit fce04dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ trait CommonScalaSettings:
135135
val usejavacp: Setting[Boolean] = BooleanSetting("-usejavacp", "Utilize the java.class.path in classpath resolution.", aliases = List("--use-java-class-path"))
136136
val scalajs: Setting[Boolean] = BooleanSetting("-scalajs", "Compile in Scala.js mode (requires scalajs-library.jar on the classpath).", aliases = List("--scalajs"))
137137
val replInitScript: Setting[String] = StringSetting("-repl-init-script", "code", "The code will be run on REPL startup.", "", aliases = List("--repl-init-script"))
138-
val replEvalOnly: Setting[Boolean] = BooleanSetting("-repl-quit-after-init", "Quit REPL after evaluating the init script.", aliases = List("--repl-quit-after-init"))
138+
val replQuitAfterInit: Setting[Boolean] = BooleanSetting("-repl-quit-after-init", "Quit REPL after evaluating the init script.", aliases = List("--repl-quit-after-init"))
139139

140140
end CommonScalaSettings
141141

compiler/src/dotty/tools/repl/ReplDriver.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class ReplDriver(settings: Array[String],
140140
* Possible reason for unsuccessful run are raised flags in CLI like --help or --version
141141
*/
142142
final def tryRunning = if shouldStart then
143-
if rootCtx.settings.replEvalOnly.value(using rootCtx) then initialState
143+
if rootCtx.settings.replQuitAfterInit.value(using rootCtx) then initialState
144144
else runUntilQuit()
145145

146146
/** Run REPL with `state` until `:quit` command found

0 commit comments

Comments
 (0)