Skip to content

Commit

Permalink
Adjust detection of shadowable keys for scalac options
Browse files Browse the repository at this point in the history
  • Loading branch information
Gedochao committed Oct 24, 2024
1 parent cae9eeb commit d40719f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final case class ScalacOpt(value: String) {
/** @return raw key for the option (only if the key can be shadowed from the CLI) */
private[options] def shadowableKey: Option[String] = key match
case Some(key)
if ScalacOpt.repeatingKeys.exists(rKey => rKey.startsWith(key + ":") || rKey == key) => None
if ScalacOpt.repeatingKeys.exists(rKey => rKey.contains(":") || rKey == key) => None
case otherwise => otherwise
}

Expand Down

0 comments on commit d40719f

Please sign in to comment.