Skip to content

Commit

Permalink
Restore help msg for other than language
Browse files Browse the repository at this point in the history
[Cherry-picked 929e7eb][modified]
  • Loading branch information
WojciechMazur committed Dec 3, 2024
1 parent 0684e71 commit d76e8f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/src/dotty/tools/dotc/config/CompilerCommand.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d76e8f6

Please sign in to comment.