Skip to content

Command-line options help is incomplete #4005

Closed
@Blaisorblade

Description

@Blaisorblade

The option help text doesn't document correctly special options

$ dotc -help
...
-color             Colored output
...
$ ./bin/dotc -color /Users/pgiarrusso/git/dotty-example-project/src/main/scala/TestGADT.scala
missing argument for option -color
  dotc -help  gives more information

The culprit is https://github.com/lampepfl/dotty/blob/36cc65ad12ce809f7a9cd08d6ba3ba5432b75eed/compiler/src/dotty/tools/dotc/config/CompilerCommand.scala#L74

That code just prints name and description of the Setting, ignoring choices, default and other fields.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions