class

Spectator::Config::CLIArgumentsApplicator

Inherits Reference / Object

Applies command-line arguments to a configuration.

Constants

Log = Spectator::Log.for("config")

Logger for this class.

Constructors

new(args : Array(String) = ARGV)

Creates the configuration source. By default, the command-line arguments (ARGV) are used. But custom arguments can be passed in.

Source

Instance methods

apply(builder) : Nil

Applies the specified configuration to a builder. Calling this method from multiple sources builds up the final configuration.

Source