From d76e8f61d4f42a8b5a74772b389f02d277eccd2b Mon Sep 17 00:00:00 2001 From: Wojciech Mazur Date: Tue, 3 Dec 2024 21:15:23 +0100 Subject: [PATCH] Restore help msg for other than language [Cherry-picked 929e7eb814f7236f51b383ea1717a04e93bfa6e5][modified] --- compiler/src/dotty/tools/dotc/config/CompilerCommand.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/src/dotty/tools/dotc/config/CompilerCommand.scala b/compiler/src/dotty/tools/dotc/config/CompilerCommand.scala index 2ffe900fbdbf..218b2e5540ed 100644 --- a/compiler/src/dotty/tools/dotc/config/CompilerCommand.scala +++ b/compiler/src/dotty/tools/dotc/config/CompilerCommand.scala @@ -9,6 +9,7 @@ abstract class CompilerCommand extends CliCommand: final def helpMsg(using settings: ScalaSettings)(using SettingsState, Context): String = settings.allSettings.find(isHelping) match + case Some(s @ settings.language) => availableOptionsMsg(_ == s) case Some(s) => s.description case _ => if (settings.help.value) usageMessage