We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 892e047 commit 018dc17Copy full SHA for 018dc17
compiler/src/dotty/tools/dotc/config/Settings.scala
@@ -187,9 +187,9 @@ object Settings:
187
setBoolean(argRest, args)
188
case (OptionTag, _) =>
189
update(Some(propertyClass.get.getConstructor().newInstance()), args)
190
- case (_, args) =>
+ case (ct, args) =>
191
val argInArgRest = !argRest.isEmpty
192
- val argAfterParam = !argInArgRest && args.nonEmpty && !args.head.startsWith("-")
+ val argAfterParam = !argInArgRest && args.nonEmpty && (ct == IntTag || !args.head.startsWith("-"))
193
if argInArgRest then
194
doSetArg(argRest, args)
195
else if argAfterParam then
0 commit comments