Skip to content

Commit 929e7eb

Browse files
committed
Restore help msg for other than language
1 parent 3c873cf commit 929e7eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: 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)