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(category: SettingCategory, name: String, descr: String, initialValue: Boolean, aliases: List[String]): Setting[Boolean]
def ChoiceSetting(category: SettingCategory, name: String, helpArg: String, descr: String, choices: List[String], default: String, aliases: List[String], legacyArgs: Boolean): Setting[String]
def DeprecatedSetting(category: SettingCategory, name: String, descr: String, deprecationMsg: String): Setting[Boolean]
def IntChoiceSetting(category: SettingCategory, name: String, descr: String, choices: Seq[Int], default: Int): Setting[Int]
def IntSetting(category: SettingCategory, name: String, descr: String, default: Int, aliases: List[String]): Setting[Int]
def MultiChoiceHelpSetting(category: SettingCategory, name: String, helpArg: String, descr: String, choices: List[ChoiceWithHelp[String]], default: List[ChoiceWithHelp[String]], aliases: List[String]): Setting[List[ChoiceWithHelp[String]]]
def MultiChoiceSetting(category: SettingCategory, name: String, helpArg: String, descr: String, choices: List[String], default: List[String], aliases: List[String]): Setting[List[String]]
def MultiStringSetting(category: SettingCategory, name: String, helpArg: String, descr: String, default: List[String], aliases: List[String]): Setting[List[String]]
def OptionSetting[T : ClassTag](category: SettingCategory, name: String, descr: String, aliases: List[String]): Setting[Option[T]]
def OutputSetting(category: SettingCategory, name: String, helpArg: String, descr: String, default: AbstractFile): Setting[AbstractFile]
def PathSetting(category: SettingCategory, name: String, descr: String, default: String, aliases: List[String]): Setting[String]
def PhasesSetting(category: SettingCategory, name: String, descr: String, default: String, aliases: List[String]): Setting[List[String]]
def PrefixSetting(category: SettingCategory, name: String, descr: String): Setting[List[String]]
def StringSetting(category: SettingCategory, name: String, helpArg: String, descr: String, default: String, aliases: List[String]): Setting[String]
def VersionSetting(category: SettingCategory, name: String, descr: String, default: ScalaVersion, legacyArgs: Boolean): Setting[ScalaVersion]
def prependName(name: String): String
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]