Skip to content

Commit e5fe919

Browse files
committed
Revert "Args files are 1 arg per line, fix -Vprint-args -"
This reverts commit b433e3c.
1 parent 362c5d1 commit e5fe919

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/compiler/scala/tools/nsc/CompilerCommand.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ class CompilerCommand(arguments: List[String], val settings: Settings) {
127127
import java.nio.file.{Files, Paths}
128128
import scala.jdk.CollectionConverters._
129129
def stripComment(s: String) = s.takeWhile(_ != '#')
130-
val file = Paths.get(arg.stripPrefix("@"))
130+
val file = Paths.get(arg stripPrefix "@")
131131
if (!Files.exists(file))
132132
throw new java.io.FileNotFoundException(s"argument file $file could not be found")
133-
Files.readAllLines(file).asScala.map(stripComment).toList
133+
settings.splitParams(Files.readAllLines(file).asScala.map(stripComment).mkString(" "))
134134
}
135135

136136
// override this if you don't want arguments processed here

src/compiler/scala/tools/nsc/settings/MutableSettings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,5 +973,5 @@ class MutableSettings(val errorFn: String => Unit, val pathFactory: PathFactory)
973973
}
974974

975975
private object Optionlike {
976-
def unapply(s: String): Boolean = s.startsWith("-") && s != "-"
976+
def unapply(s: String): Boolean = s.startsWith("-")
977977
}

0 commit comments

Comments
 (0)