CliCommand

dotty.tools.dotc.config.CliCommand
trait CliCommand

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ScalacCommand.type
object ReplCommand.type

Members list

Type members

Classlikes

class Columnator(heading1: String, heading2: String, maxField: Int, separation: Int)

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Abstract methods

The name of the command

The name of the command

Attributes

def helpMsg(using settings: ConcreteSettings)(using SettingsState, Context): String
def isHelpFlag(using settings: ConcreteSettings)(using SettingsState): Boolean

Concrete methods

protected def availableOptionsMsg(p: Setting[_] => Boolean)(using settings: ConcreteSettings)(using SettingsState): String

Creates a help message for a subset of options based on cond

Creates a help message for a subset of options based on cond

Attributes

def checkUsage(summary: ArgsSummary, sourcesRequired: Boolean)(using settings: ConcreteSettings)(using SettingsState, Context): Option[List[String]]

Provide usage feedback on argument summary, assuming that all settings are already applied in context.

Provide usage feedback on argument summary, assuming that all settings are already applied in context.

Attributes

Returns

Either Some list of files passed as arguments or None if further processing should be interrupted.

protected def createUsageMsg(label: String, shouldExplain: Boolean, cond: Setting[_] => Boolean)(using settings: ConcreteSettings)(using SettingsState): String

Distill arguments into summary detailing settings, errors and files to main

Distill arguments into summary detailing settings, errors and files to main

Attributes

protected def isAdvanced(s: Setting[_])(using settings: ConcreteSettings)(using SettingsState): Boolean
protected def isHelping(s: Setting[_])(using settings: ConcreteSettings)(using SettingsState): Boolean
protected def isPrivate(s: Setting[_])(using settings: ConcreteSettings)(using SettingsState): Boolean
protected def isStandard(s: Setting[_])(using settings: ConcreteSettings)(using SettingsState): Boolean
protected def isVerbose(s: Setting[_])(using settings: ConcreteSettings)(using SettingsState): Boolean
protected def isWarning(s: Setting[_])(using settings: ConcreteSettings)(using SettingsState): Boolean
protected def phasesMessage(using Context): String

Used for the formatted output of -Xshow-phases

Used for the formatted output of -Xshow-phases

Attributes

protected def shortHelp(s: Setting[_])(using settings: ConcreteSettings)(using SettingsState): String
protected def shortUsage: String
protected def usageMessage(using settings: ConcreteSettings)(using SettingsState): String

Messages explaining usage and options

Messages explaining usage and options

Attributes

protected def vusageMessage(using settings: ConcreteSettings)(using SettingsState): String
protected def wusageMessage(using settings: ConcreteSettings)(using SettingsState): String
protected def xusageMessage(using settings: ConcreteSettings)(using SettingsState): String
protected def yusageMessage(using settings: ConcreteSettings)(using SettingsState): String

Extensions

Extensions

extension (s: String)
def padLeft(width: Int): String
extension [T](setting: Setting[T])
protected def value(using ss: SettingsState): T