summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/GenericRunnerCommand.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-04-19 15:45:58 +0000
committermichelou <michelou@epfl.ch>2007-04-19 15:45:58 +0000
commita87d9a20e00c4951b774976ef2350d11be764b3d (patch)
treef92af868f6e5c67210646a72eb7b9f688ab0f0ab /src/compiler/scala/tools/nsc/GenericRunnerCommand.scala
parent28edfc11090d9075200dcdd47227b4f067284f9a (diff)
downloadscala-a87d9a20e00c4951b774976ef2350d11be764b3d.tar.gz
scala-a87d9a20e00c4951b774976ef2350d11be764b3d.tar.bz2
scala-a87d9a20e00c4951b774976ef2350d11be764b3d.zip
updated for-comprehension syntax
Diffstat (limited to 'src/compiler/scala/tools/nsc/GenericRunnerCommand.scala')
-rw-r--r--src/compiler/scala/tools/nsc/GenericRunnerCommand.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/GenericRunnerCommand.scala b/src/compiler/scala/tools/nsc/GenericRunnerCommand.scala
index 9cd2e528e3..26742f5a88 100644
--- a/src/compiler/scala/tools/nsc/GenericRunnerCommand.scala
+++ b/src/compiler/scala/tools/nsc/GenericRunnerCommand.scala
@@ -1,5 +1,5 @@
/* NSC -- new Scala compiler
- * Copyright 2006 LAMP/EPFL
+ * Copyright 2007 LAMP/EPFL
* @author Lex Spoon
*/
@@ -29,8 +29,8 @@ class GenericRunnerCommand(allargs: List[String], error: String => Unit) {
while (!args.isEmpty && ok && args.head.startsWith("-")) {
val args0 = args
- for (val setting <- settings.allSettings)
- if(args eq args0)
+ for (setting <- settings.allSettings)
+ if (args eq args0)
args = setting.tryToSet(args)
if (args eq args0) {
error("unknown option: '" + args.head + "'")
@@ -38,7 +38,7 @@ class GenericRunnerCommand(allargs: List[String], error: String => Unit) {
}
}
- if(!args.isEmpty) {
+ if (!args.isEmpty) {
thingToRun = Some(args.head)
arguments = args.tail
}