Skip to content

javac options not work with package command #1326

@lwronski

Description

@lwronski

Version(s)
0.1.12

Describe the bug
When pass javac options to scala-cli, package command fail.

To Reproduce

$ cat Main.scala
//> using scala "3.1.3"

object Main {
  def main(args: Array[String]) = args.zipWithIndex.foreach(println)
}
$ scala-cli package .  -f --javac-option -source --javac-option 1.8 --javac-option -target --javac-option 1.8
./Main

Unrecognized option: -source
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions