summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2007-01-12 18:15:00 +0000
committerLex Spoon <lex@lexspoon.org>2007-01-12 18:15:00 +0000
commit003f7e2b70c4fd1945c0cc790aaaca542a529652 (patch)
treed76cd7c2a043674b8a7184ee685a430535ba1d32 /src/compiler
parentcfb8a3bb3e7f881a9d76c990d0a641683f187e71 (diff)
downloadscala-003f7e2b70c4fd1945c0cc790aaaca542a529652.tar.gz
scala-003f7e2b70c4fd1945c0cc790aaaca542a529652.tar.bz2
scala-003f7e2b70c4fd1945c0cc790aaaca542a529652.zip
Tweaked the help and welcome messages.
the welcome message is much shorter.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/InterpreterLoop.scala15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/InterpreterLoop.scala b/src/compiler/scala/tools/nsc/InterpreterLoop.scala
index 9416aee401..b685bbd47b 100644
--- a/src/compiler/scala/tools/nsc/InterpreterLoop.scala
+++ b/src/compiler/scala/tools/nsc/InterpreterLoop.scala
@@ -67,11 +67,18 @@ class InterpreterLoop(in: BufferedReader, out: PrintWriter) {
def printHelp = {
out.println("This is an interpreter for Scala.")
out.println("Type in expressions to have them evaluated.")
- out.println("Type :quit to exit the interpreter.")
out.println("Type :compile followed by a filename to compile a complete Scala file.")
- out.println("Type :load followed by a filename to load a sequence of interpreter commands.")
+ out.println("Type :help to repeat this message.")
+ out.println("Type :load followed by a filename to load interpreter commands.")
out.println("Type :replay to reset execution and replay all previous commands.")
- out.println("Type :help to repeat this message later.")
+ out.println("Type :quit to exit the interpreter.")
+ }
+
+ /** Print a welcome message */
+ def printWelcome = {
+ out.println("This is an interpreter for Scala.")
+ out.println("Type in expressions to have them evaluated.")
+ out.println("Type :help for more information.")
}
/** The main read-eval-print loop for the interpereter. It calls
@@ -191,7 +198,7 @@ class InterpreterLoop(in: BufferedReader, out: PrintWriter) {
createInterpreter
try {
- printHelp
+ printWelcome
repl
} finally {
closeInterpreter