class CrConfig::Providers::CommandLineParser
Overview
Provider that looks through provided command line arguments for configuration overrides
This provider assumes all configurations will be supplied in the format of --config.name=new_val
. To make this approach workable with OptionParser,
any configurations discovered through command line arguments will be removed from the ARGV array, so that OptionParser won't error for unrecognized options.
This requires the configuration class to be constructed before the OptionParser.parse
method gets called.
Defined in:
cr-config/abstract_provider.crInstance Method Summary
-
#populate(builder : AbstractBuilder)
This method gets called with the instance of the configuration builder during config building.
Instance methods inherited from class CrConfig::Providers::AbstractProvider
populate(builder : AbstractBuilder)
populate
Instance Method Detail
This method gets called with the instance of the configuration builder during config building.
Use this method to populate the builder with any configuration name / values that this provider... provides