summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2007-10-10 00:59:37 +0000
committerLex Spoon <lex@lexspoon.org>2007-10-10 00:59:37 +0000
commitef106dc59c6c0e5f09f1fe56c351feb8be194614 (patch)
tree93f22baae1e21a5850ee25050cc4fa511d438b2c
parentb10fe799a8995a783466b353cf3b45f908c0697e (diff)
downloadscala-ef106dc59c6c0e5f09f1fe56c351feb8be194614.tar.gz
scala-ef106dc59c6c0e5f09f1fe56c351feb8be194614.tar.bz2
scala-ef106dc59c6c0e5f09f1fe56c351feb8be194614.zip
added -i and -e options
-rw-r--r--src/compiler/scala/tools/nsc/GenericRunnerSettings.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/GenericRunnerSettings.scala b/src/compiler/scala/tools/nsc/GenericRunnerSettings.scala
index 3e9c3e706b..153425b6b3 100644
--- a/src/compiler/scala/tools/nsc/GenericRunnerSettings.scala
+++ b/src/compiler/scala/tools/nsc/GenericRunnerSettings.scala
@@ -19,6 +19,19 @@ extends Settings(error) {
List("guess", "object", "script"),
"guess")
+ val loadfiles =
+ MultiStringSetting(
+ "-i",
+ "file",
+ "load a file (assumes the code is given interactively)")
+
+ val execute =
+ StringSetting(
+ "-e",
+ "string",
+ "execute a single command",
+ "")
+
val savecompiled =
BooleanSetting(
"-savecompiled",
@@ -29,6 +42,7 @@ extends Settings(error) {
"-nocompdaemon",
"do not use the fsc compilation daemon")
+
/** For some reason, "object defines extends Setting(...)"
* does not work here. The object is present but the setting
* is not added to allsettings. Thus,