How can I find all of the flags for the latest scalac version? After googling for hours I have found only outdated docs. (for example, they don't even mention "-feature" flag).
Is there any way to obtain the list of compiler flags with descriptions from scalac, or anything else?
The closest I have been able to find is the relevant source files for the compiler. Unfortunately the options are spread among several files. As of this writing, it breaks down like so:
These will of course be for the current development version of the compiler, so if you want options for a specific version of
scalac
, you'll need to use the "branch" drop-down menu to view the correct version tag.