Skip to content

Commit 417c9bc

Browse files
som-snyttWojciechMazur
authored andcommitted
Restore help msg for other than language
[Cherry-picked 929e7eb]
1 parent fc1aae6 commit 417c9bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/config/CompilerCommand.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ abstract class CompilerCommand extends CliCommand:
99

1010
final def helpMsg(using settings: ConcreteSettings)(using SettingsState, Context): String =
1111
settings.allSettings.find(isHelping) match
12-
case Some(s) => availableOptionsMsg(_ == s, showArgFileMsg = false)
12+
case Some(s @ settings.language) => availableOptionsMsg(_ == s, showArgFileMsg = false)
13+
case Some(s) => s.description
1314
case _ =>
1415
if (settings.help.value) usageMessage
1516
else if (settings.Vhelp.value) vusageMessage

0 commit comments

Comments
 (0)