How to use Scala interpreter options with SBT?
Posted
by
John Threepwood
on Stack Overflow
See other posts from Stack Overflow
or by John Threepwood
Published on 2012-06-15T21:13:27Z
Indexed on
2012/06/15
21:16 UTC
Read the original article
Hit count: 423
When using the Scala interpreter, one could start it with an option like:
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>
When using sbt, how can one start the Scala interpreter with options ? The following try will not work:
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] ^
With Google & Co I could not figure out how to do this from within the sbt shell. Does anyone know ?
© Stack Overflow or respective owner