diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-01-07 18:18:01 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-01-07 18:34:14 -0800 |
commit | 4e996e20cbae77d993ed8e63aeb533ddcc5514dd (patch) | |
tree | 916c1a30e856a70fa9c37c982f0deeef8e31dcee /core/src/main/scala | |
parent | ff1004e0af2ff754bba44dbe9d3505cf80efce97 (diff) | |
download | mill-4e996e20cbae77d993ed8e63aeb533ddcc5514dd.tar.gz mill-4e996e20cbae77d993ed8e63aeb533ddcc5514dd.tar.bz2 mill-4e996e20cbae77d993ed8e63aeb533ddcc5514dd.zip |
Remove `--repl` flag, running `mill` without a task selector now drops you into a REPL just like SBT
Diffstat (limited to 'core/src/main/scala')
-rw-r--r-- | core/src/main/scala/mill/Main.scala | 14 |
1 files changed, 3 insertions, 11 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( |