From 5f9c20c232ee33d60f012aa999cb70da56e690ab Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sun, 7 Mar 2010 05:24:00 +0000 Subject: 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. --- src/compiler/scala/tools/nsc/CompilerCommand.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/compiler/scala/tools/nsc/CompilerCommand.scala') 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) -- cgit v1.2.3