summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/CompilerCommand.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-03-18 19:06:22 +0000
committerPaul Phillips <paulp@improving.org>2011-03-18 19:06:22 +0000
commit0554c378653c47aefaabe48b0ef568f952d1695b (patch)
treea9c8b1e004efc67a2a7cd4772ae08013e99b108a /src/compiler/scala/tools/nsc/CompilerCommand.scala
parentf3b970b28cf640904fe0d340f9eb7de37514cb67 (diff)
downloadscala-0554c378653c47aefaabe48b0ef568f952d1695b.tar.gz
scala-0554c378653c47aefaabe48b0ef568f952d1695b.tar.bz2
scala-0554c378653c47aefaabe48b0ef568f952d1695b.zip
Improved the error message when one gives inval...
Improved the error message when one gives invalid options to scala. Similar improvements for scalac/fsc/etc has to wait. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/CompilerCommand.scala')
-rw-r--r--src/compiler/scala/tools/nsc/CompilerCommand.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/CompilerCommand.scala b/src/compiler/scala/tools/nsc/CompilerCommand.scala
index 2e3bc32007..1c0fd8b9de 100644
--- a/src/compiler/scala/tools/nsc/CompilerCommand.scala
+++ b/src/compiler/scala/tools/nsc/CompilerCommand.scala
@@ -17,9 +17,11 @@ class CompilerCommand(arguments: List[String], val settings: Settings) {
/** file extensions of files that the compiler can process */
lazy val fileEndings = Properties.fileEndings
- val (ok, files) =
+ private val processArgumentsResult =
if (shouldProcessArguments) processArguments
else (true, Nil)
+ def ok = processArgumentsResult._1
+ def files = processArgumentsResult._2
/** The name of the command */
def cmdName = "scalac"