Skip to content

Commit

Permalink
Restore help msg for other than language
Browse files Browse the repository at this point in the history
  • Loading branch information
som-snytt committed Aug 24, 2024
1 parent 3c873cf commit 929e7eb
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 929e7eb

Please sign in to comment.