scala.tools.nsc.GenericRunnerSettings.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala-compiler Show documentation
Show all versions of scala-compiler Show documentation
Compiler for the SubScript extension of the Scala Programming Language
The newest version!
/* NSC -- new Scala compiler
* Copyright 2006-2013 LAMP/EPFL
* @author Lex Spoon
*/
package scala.tools.nsc
import java.net.URL
import scala.tools.util.PathResolverFactory
class GenericRunnerSettings(error: String => Unit) extends Settings(error) {
def classpathURLs: Seq[URL] = PathResolverFactory.create(this).resultAsURLs
val howtorun =
ChoiceSetting(
"-howtorun",
"how",
"how to run the specified code",
List("object", "script", "jar", "guess"),
"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 save =
BooleanSetting(
"-save",
"save the compiled script (assumes the code is a script)") withAbbreviation "-savecompiled"
val nc = BooleanSetting(
"-nc",
"do not use the fsc compilation daemon") withAbbreviation "-nocompdaemon"
}