I have an Akka app that has a fork := true setting in build.sbt. So when I need to debug code I set it manually to false. That is something which is easy to forget.
Is there a way to override the fork setting from command line? For example when running sbt clean run. I've read that one can create a separate task and override fork just for that task. In latter case how would the clean run task look like?
Update: Sorry for the confusion. Following Marko's reply I realized that my ticket was incomplete. I would like a way to set this in a non-interactive shell. Right now I have an IntelliJ sbtTask (which also takes environment variables etc.) for which I just click the debug button to run the app. The task itself has only two words in it - clean run, but should need to create a separate one that would be fine.