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]
  • Loading branch information
som-snytt authored and WojciechMazur committed Aug 28, 2024
1 parent fc1aae6 commit 417c9bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/src/dotty/tools/dotc/config/CompilerCommand.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ abstract class CompilerCommand extends CliCommand:

final def helpMsg(using settings: ConcreteSettings)(using SettingsState, Context): String =
settings.allSettings.find(isHelping) match
case Some(s) => availableOptionsMsg(_ == s, showArgFileMsg = false)
case Some(s @ settings.language) => availableOptionsMsg(_ == s, showArgFileMsg = false)
case Some(s) => s.description
case _ =>
if (settings.help.value) usageMessage
else if (settings.Vhelp.value) vusageMessage
Expand Down

0 comments on commit 417c9bc

Please sign in to comment.