使用 Scala 解释器时,可以使用以下选项启动它:
C:\Users\John>scala -unchecked
Welcome to Scala version 2.9.2 (Java HotSpot(TM) Client VM, Java 1.6.0_32).
Type in expressions to have them evaluated.
Type :help for more information.
scala>
使用 sbt 时,如何使用选项启动 Scala 解释器?以下尝试将不起作用:
C:\Users\John\Test Scala Project 1>sbt
[...]
[info] Loading global plugins from C:\Users\John\.sbt\plugins
[info] Set current project to default-8d4ecc (in build file:/C:/Users/John/Tes
t%20Scala%20Project%201/)
> console -unchecked
[error] Expected end of input.
[error] console -unchecked
[error] ^
使用 Google & Co,我无法从 sbt shell 中弄清楚如何做到这一点。有人知道吗 ?