From 7b4a349d5bba5a9c156e1cbe441401b7e10df36b Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Tue, 7 Mar 2017 13:30:56 +0000 Subject: [PATCH] Instruct how to get into interactive mode directly --- main/src/main/scala/sbt/MainLoop.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main/src/main/scala/sbt/MainLoop.scala b/main/src/main/scala/sbt/MainLoop.scala index e3c1c7142..5c6735148 100644 --- a/main/src/main/scala/sbt/MainLoop.scala +++ b/main/src/main/scala/sbt/MainLoop.scala @@ -74,8 +74,10 @@ object MainLoop { val loggedState = state.copy(globalLogging = newLogging) def isInteractive = System.console() != null def hasShell = state.remainingCommands contains "shell" - if (isInteractive && !hasShell) - state.log warn "Executing in batch mode; for better performance, hit [ENTER] to remain in the sbt shell" + if (isInteractive && !hasShell) { + state.log warn "BATCH MODE: for better performance hit [ENTER] to switch to interactive mode" + state.log warn " consider launching sbt without any commands, or explicitly passing 'shell'" + } try run(loggedState) finally out.close() }