SettingGroup

dotty.tools.dotc.config.Settings.SettingGroup
class SettingGroup

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def BooleanSetting(name: String, descr: String, initialValue: Boolean, aliases: List[String]): Setting[Boolean]
def ChoiceSetting(name: String, helpArg: String, descr: String, choices: List[String], default: String, aliases: List[String]): Setting[String]
def IntChoiceSetting(name: String, descr: String, choices: Seq[Int], default: Int): Setting[Int]
def IntSetting(name: String, descr: String, default: Int, aliases: List[String]): Setting[Int]
def MultiChoiceSetting(name: String, helpArg: String, descr: String, choices: List[String], default: List[String], aliases: List[String]): Setting[List[String]]
def MultiStringSetting(name: String, helpArg: String, descr: String, default: List[String], aliases: List[String]): Setting[List[String]]
def OptionSetting[T : ClassTag](name: String, descr: String, aliases: List[String]): Setting[Option[T]]
def OutputSetting(name: String, helpArg: String, descr: String, default: AbstractFile): Setting[AbstractFile]
def PathSetting(name: String, descr: String, default: String, aliases: List[String]): Setting[String]
def PhasesSetting(name: String, descr: String, default: String, aliases: List[String]): Setting[List[String]]
def PrefixSetting(name: String, pre: String, descr: String): Setting[List[String]]
def StringSetting(name: String, helpArg: String, descr: String, default: String, aliases: List[String]): Setting[String]
def VersionSetting(name: String, descr: String, default: ScalaVersion): Setting[ScalaVersion]
final def processArguments(state: ArgsSummary, processAll: Boolean, skipped: List[String]): ArgsSummary

Iterates over the arguments applying them to settings where applicable. Then verifies setting dependencies are met.

Iterates over the arguments applying them to settings where applicable. Then verifies setting dependencies are met.

This takes a boolean indicating whether to keep processing if an argument is seen which is not a command line option. This is an expedience for the moment so that you can say

scalac -d /tmp foo.scala -optimise

while also allowing

scala Program opt opt

to get their arguments.

Attributes

def processArguments(arguments: List[String], processAll: Boolean, settingsState: SettingsState): ArgsSummary
def publish[T](settingf: Int => Setting[T]): Setting[T]