diff options
-rw-r--r-- | core/src/main/scala/mill/Main.scala | 14 | ||||
-rw-r--r-- | readme.md | 4 |
2 files changed, 5 insertions, 13 deletions
diff --git a/core/src/main/scala/mill/Main.scala b/core/src/main/scala/mill/Main.scala index 684040a7..bac9d579 100644 --- a/core/src/main/scala/mill/Main.scala +++ b/core/src/main/scala/mill/Main.scala @@ -12,17 +12,8 @@ object Main { def main(args: Array[String]): Unit = { import ammonite.main.Cli - var repl = false + var show = false - val replCliArg = Cli.Arg[Cli.Config, Unit]( - "repl", - None, - "Open a Build REPL", - (x, _) => { - repl = true - x - } - ) val showCliArg = Cli.Arg[Cli.Config, Unit]( "show", None, @@ -34,13 +25,14 @@ object Main { ) Cli.groupArgs( args.toList, - Cli.ammoniteArgSignature :+ replCliArg :+ showCliArg, + Cli.ammoniteArgSignature :+ showCliArg, Cli.Config() ) match{ case Left(msg) => System.err.println(msg) System.exit(1) case Right((cliConfig, leftoverArgs)) => + val repl = leftoverArgs.isEmpty val config = if(!repl) cliConfig else cliConfig.copy( @@ -55,7 +55,7 @@ it via: ```bash sbt "~bin/test:run core.test" -sbt "~bin/test:run --repl" +sbt "~bin/test:run" ``` Lastly, you can generate IntelliJ Scala project files using Mill via @@ -72,7 +72,7 @@ Mill provides a build REPL, which lets you explore the build interactively and run `Target`s from Scala code: ```scala -lihaoyi mill$ bin/target/mill --repl +lihaoyi mill$ bin/target/mill Loading... Compiling (synthetic)/ammonite/predef/interpBridge.sc Compiling (synthetic)/ammonite/predef/replBridge.sc |