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

Make -d and -classpath options backwards compatible with the scala command #1340

Merged
merged 5 commits into from Sep 15, 2022

Conversation

Gedochao
Copy link
Contributor

@Gedochao Gedochao commented Sep 9, 2022

Context: #1310

Summary of changes (most of them, breaking changes):

  • the compile sub-command's --output option has been renamed to --compilation-output
    • the --compilation-output option is now also available from the run and package sub-commands
    • the rename is necessary to prevent a clash with the --output option of the package sub-command
  • the -d option is no longer an alias for --dependency, but for --compilation-output
    • the aim of that change is to be backwards compatible with scala command's -d
  • -O -d -O path/to/compilation/output now defaults to -d path/to/compilation/output
  • the old --classpath option has been renamed to --print-classpath, to better reflect what it actually does
    • the rename is necessary to prevent the near-clash between scala-cli's --classpath and scala command's -classpath options (which have radically different meanings, BTW)
  • --classpath, --class-path and -classpath options are now aliases for the --extra jars option
  • -O -classpath -O path/to/classpath now defaults to --extra-jars path/to/classpath

Reference docs have been generated for each of the commits, separately.

@Gedochao Gedochao added the SIP-46 All the issues related to SIP-46 to turn Scala CLI into the official scala runner command. label Sep 9, 2022
@Gedochao Gedochao force-pushed the backwards-compat-classpath branch 2 times, most recently from a586ff7 to 73387c5 Compare September 13, 2022 06:50
@Gedochao Gedochao marked this pull request as ready for review September 13, 2022 07:30
…tput`; prevent the `-d` underlying compiler flag from being set repeatedly and default it to --compile-output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SIP-46 All the issues related to SIP-46 to turn Scala CLI into the official scala runner command.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants