-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance help message for language flag #20247
Enhance help message for language flag #20247
Conversation
@noti0na1 perhaps we could align the output with the way Scala 2 compiler does it? scalac2 -language:help # scalac2 is an alias for the Scala 2 compiler command here
# Enable or disable language features
# dynamics Allow direct or indirect subclasses of scala.Dynamic
# existentials Existential types (besides wildcard types) can be written and inferred
# higherKinds Allow higher-kinded types
# implicitConversions Allow definition of implicit functions called views
# postfixOps Allow postfix operator notation, such as `1 to 10 toList` (not recommended)
# reflectiveCalls Allow reflective access to members of structural types
# experimental.macros Allow macro definition (besides implementation and application) Also, optimally we'd like passing inputs to not be necessary with a help flag (so no |
65dc34f
to
da00b3d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure what the changes in the CB build files are for. The changes in config LGTM.
@odersky Since this change will reject invalid language features, I just delete old flags (like |
ef08237
to
b2b7f10
Compare
b2b7f10
to
b7fc5da
Compare
I wonder would it be possible to make the unknown -language options yield warning instead of error. This way it would be more alligned with handling of other unknown scalac options - these are ignored are yield warning. I've found it quite annoying when reproducing OpenCB failures when projects use plugins to set common scalacOptions - these typically might contain deprecated or removed in Scala 3 scalac options. |
Partial fix #20083
Enhance help message for language flag by displaying all available choises