Skip to content

Commit d40719f

Browse files
committed
Adjust detection of shadowable keys for scalac options
1 parent cae9eeb commit d40719f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/options/src/main/scala/scala/build/options/ScalacOpt.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ final case class ScalacOpt(value: String) {
1010
/** @return raw key for the option (only if the key can be shadowed from the CLI) */
1111
private[options] def shadowableKey: Option[String] = key match
1212
case Some(key)
13-
if ScalacOpt.repeatingKeys.exists(rKey => rKey.startsWith(key + ":") || rKey == key) => None
13+
if ScalacOpt.repeatingKeys.exists(rKey => rKey.contains(":") || rKey == key) => None
1414
case otherwise => otherwise
1515
}
1616

0 commit comments

Comments
 (0)