summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/CompilerCommand.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-03-07 05:24:00 +0000
committerPaul Phillips <paulp@improving.org>2010-03-07 05:24:00 +0000
commit5f9c20c232ee33d60f012aa999cb70da56e690ab (patch)
treeb35d9aa49dda5de45e23381ef24bc417d3d587b7 /src/compiler/scala/tools/nsc/CompilerCommand.scala
parent121164ef717226fafaa6a72dcfef0aec1bd89ee4 (diff)
downloadscala-5f9c20c232ee33d60f012aa999cb70da56e690ab.tar.gz
scala-5f9c20c232ee33d60f012aa999cb70da56e690ab.tar.bz2
scala-5f9c20c232ee33d60f012aa999cb70da56e690ab.zip
One minute too many trying to figure out where ...
One minute too many trying to figure out where some partest classpath mutation was disappearing on me, and I snapped and started the process of creating an immutable Settings. This commit is for the most part infrastructure to enable its smooth and uneventful entrance. Review by community.
Diffstat (limited to 'src/compiler/scala/tools/nsc/CompilerCommand.scala')
-rw-r--r--src/compiler/scala/tools/nsc/CompilerCommand.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/CompilerCommand.scala b/src/compiler/scala/tools/nsc/CompilerCommand.scala
index dd581e0878..f24bef9b60 100644
--- a/src/compiler/scala/tools/nsc/CompilerCommand.scala
+++ b/src/compiler/scala/tools/nsc/CompilerCommand.scala
@@ -6,7 +6,6 @@
package scala.tools.nsc
-import Settings.Setting
import java.io.IOException
import scala.collection.mutable.ListBuffer
import scala.tools.nsc.util.ArgumentsExpander
@@ -22,6 +21,8 @@ class CompilerCommand(
def this(arguments: List[String], settings: Settings, error: String => Unit, interactive: Boolean) =
this(arguments, settings, error, interactive, true)
+ type Setting = Settings#Setting
+
/** file extensions of files that the compiler can process */
lazy val fileEndings = Properties.fileEndings
@@ -46,7 +47,7 @@ class CompilerCommand(
/** Messages explaining usage and options */
def usageMsg = createUsageMsg("where possible standard", _.isStandard)
- def fscUsageMsg = createUsageMsg("where possible standard", ( st => st.isStandard || st.isFscSpecific ))
+ def fscUsageMsg = createUsageMsg("where possible standard", ( st => st.isStandard || st.name == "-shutdown"))
def xusageMsg = createUsageMsg("Possible advanced", _.isAdvanced)
def yusageMsg = createUsageMsg("Possible private", _.isPrivate)