spray / sbt-revolver

An SBT plugin for dangerously fast development turnaround in Scala
Apache License 2.0
846 stars 55 forks source link

How can I specify the main class through CLI? #104

Open tusharmath opened 2 years ago

tusharmath commented 2 years ago

I want to specify the main class through cli. I have tried the following —

reStart/mainClass "example.HelloWorld"

But it doesn't work. What else can I do?

jrudolph commented 2 years ago

You can try

set reStart / mainClass := "example.HelloWorld"

but it would be nicer if we also had something like runMain.

tusharmath commented 2 years ago

Yes exactly!