Skip to content

Commit

Permalink
Revert Scala 3 aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
som-snytt committed Apr 22, 2022
1 parent cc60058 commit 4b3b050
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -60,7 +60,7 @@ trait StandardScalaSettings { _: MutableSettings =>
//target.value = setting.value // this would trigger deprecation
}
.withAbbreviation("--release")
.withAbbreviation("-java-output-version")
// .withAbbreviation("-java-output-version")
def releaseValue: Option[String] = release.valueSetByUser
val target =
ChoiceSetting("-target", "target", "Target platform for object files.", AllTargetVersions, "8")
Expand All @@ -69,9 +69,9 @@ trait StandardScalaSettings { _: MutableSettings =>
if (releaseValue.map(_.toInt < setting.value.toInt).getOrElse(false)) errorFn("-release cannot be less than -target")
}
.withAbbreviation("--target")
.withAbbreviation("--Xtarget")
.withAbbreviation("-Xtarget")
.withAbbreviation("-Xunchecked-java-output-version")
// .withAbbreviation("--Xtarget")
// .withAbbreviation("-Xtarget")
// .withAbbreviation("-Xunchecked-java-output-version")
.withDeprecationMessage("Use -release instead to compile against the correct platform API.")
def targetValue: String = releaseValue.getOrElse(target.value)
val unchecked = BooleanSetting ("-unchecked", "Enable additional warnings where generated code depends on assumptions. See also -Wconf.") withAbbreviation "--unchecked" withPostSetHook { s =>
Expand Down

0 comments on commit 4b3b050

Please sign in to comment.