Skip to content

Commit 363c0d6

Browse files
committed
Allow IntSetting's to be set with a colon
For example "-pagewidth:100" instead of the two arg "-pagewidth 100".
1 parent 7d702a3 commit 363c0d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ object Settings:
130130
val output = if (isJar) JarArchive.create(path) else new PlainDirectory(path)
131131
update(output, args)
132132
}
133-
case (IntTag, arg2 :: args2) =>
133+
case (IntTag, _) =>
134+
val arg2 :: args2 = if (argRest == "") args else argRest :: args
134135
try {
135136
val x = arg2.toInt
136137
choices match {

0 commit comments

Comments
 (0)