Spectator::CommandLineArgumentsConfigSource
Inherits Spectator::ConfigSource < Reference < Object
Generates configuration from the command-line arguments.
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.
Instance methods
apply_to(builder : ConfigBuilder) : Nil
Applies the specified configuration to a builder. Calling this method from multiple sources builds up the final configuration.