Activator
view release on metacpan or search on metacpan
lib/Activator/Config.pm view on Meta::CPAN
This module allows a script or application to have a complex
configuration combining options from command line, environment
variables, and YAML configuration files.
For a script or application, one creates any number of YAML
configuration files. These files will be deterministically merged into
one hash. You can then pass this to an application or write it to file.
This module is not an options validator. It uses command line options
as overrides to existing keys in configuration files and DOES NOT
validate them. Unrecognized command line options are ignored and
C<@ARGV> is modified to remove recognized options, leaving barewords
and unrecognized options in place and the same order for a real
options validator (like L<Getopt::Long>). If you do use another
options module, make sure you call C<get_config()> BEFORE you call
their processor, so that C<@ARGV> will be in an appropriate state.
Environment variables can be used to act as a default to command line
options, and/or override any top level configuration file key which is
a scalar.
( run in 0.339 second using v1.01-cache-2.11-cpan-4d50c553e7e )