Skip to content
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

Support for printing help from scala compiler #753

Closed
lwronski opened this issue Mar 4, 2022 · 2 comments · Fixed by #1052
Closed

Support for printing help from scala compiler #753

lwronski opened this issue Mar 4, 2022 · 2 comments · Fixed by #1052
Assignees

Comments

@lwronski
Copy link
Contributor

lwronski commented Mar 4, 2022

Is your feature request related to a problem? Please describe.

Scala CLI should print help message from scala compiler like scalac -help. It can be added new flag to print help from compiler.

@zmerr zmerr self-assigned this Mar 7, 2022
@SethTisue
Copy link
Contributor

scalac -Xshow-phases is also like this:

% /usr/local/scala/scala-2.13.8/bin/scala -Xshow-phases
    phase name  id  description
    ----------  --  -----------
        parser   1  parse source into ASTs, perform simple desugaring
         namer   2  resolve names, attach symbols to named trees
...

but:

% scala-cli compile -S 2.13.8 -Xshow-phases
No inputs provided (expected files with .scala or .sc extensions, and / or directories).

@SethTisue
Copy link
Contributor

similarly, scalac -X and scalac -Y and scalac -V and scalac -W print help for just those subcategories of flags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants