From 5697f074c1c365ec8a5567ff22b9a9da5bbc5715 Mon Sep 17 00:00:00 2001 From: BrianHotopp Date: Tue, 31 Mar 2026 01:50:45 -0400 Subject: [PATCH] [2.x] fix: Update ++ help text to reflect SemanticSelector matching (#8995) The first paragraph of `help ++` still said "binary compatible" from before PR #6946 changed the behavior to use SemanticSelector pattern matching. Update it to match the already-correct second paragraph. Fixes #6988 Co-authored-by: Claude Opus 4.6 (1M context) --- main/src/main/scala/sbt/internal/CommandStrings.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/src/main/scala/sbt/internal/CommandStrings.scala b/main/src/main/scala/sbt/internal/CommandStrings.scala index 979702e62..9761fc724 100644 --- a/main/src/main/scala/sbt/internal/CommandStrings.scala +++ b/main/src/main/scala/sbt/internal/CommandStrings.scala @@ -362,10 +362,10 @@ defaults s"""$SwitchCommand [!] [-v] [] Changes the Scala version and runs a command. - Sets the `scalaVersion` of all projects that define a Scala cross version that is binary - compatible with and reloads the build. If ! is supplied, then the - version is forced on all projects regardless of whether they are binary compatible or - not. + may be an actual Scala version such as 3.1.3, or a Semantic Version selector + pattern such as 2.13.x. Only subprojects whose crossScalaVersions match the version pattern + have their Scala version switched. If ! is supplied, then all projects have + their Scala version switched. If -v is supplied, verbose logging of the Scala version switching is done.