SBT: Start a command line 'run' of the main class of a non-default project

前端 未结 4 1031
别那么骄傲
别那么骄傲 2021-01-30 08:33

I am starting to use sbt build my Scala code (and handle dependencies). As far as I know if I use

$ sbt run 

on the command line th

4条回答
  •  生来不讨喜
    2021-01-30 09:01

    You simply have to quote each command (as in the second example on this page), so in your case it would be:

    $ sbt "project foo" "run arg1 arg2"
    

提交回复
热议问题