Skip to content

Script scala does not take arguments error ammonite

nexssp edited this page Jan 23, 2020 · 1 revision

To avoid errors like:

Script .scala does not take arguments: "--" "--test" "--nocache" etc. etc. ammonite

You need to add to the ammonite script:

@main
def main(s: String*): Unit = {
//   println(s)
}
Clone this wiki locally