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 8e8a056
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ 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 key.contains(":") ||
ScalacOpt.repeatingKeys.exists(rKey => rKey.startsWith(key) || rKey == key) => None
case otherwise => otherwise
}

Expand Down

0 comments on commit 8e8a056

Please sign in to comment.