X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FSimpleConfig.pm;fp=lib%2FMooseX%2FSimpleConfig.pm;h=879e0b844294aea979d8887fba2cc6d6378fc8bf;hb=c36a5f381f55b817659e61bd3c6513f05eb0b949;hp=4754a7e101f4b660deb78fb3c44f719786093675;hpb=835dc72fa96db473b1bf0028c930be63c63645d1;p=gitmo%2FMooseX-SimpleConfig.git diff --git a/lib/MooseX/SimpleConfig.pm b/lib/MooseX/SimpleConfig.pm index 4754a7e..879e0b8 100644 --- a/lib/MooseX/SimpleConfig.pm +++ b/lib/MooseX/SimpleConfig.pm @@ -121,12 +121,12 @@ well, which allows specifying C<-configfile> on the commandline. Provided by the base role L. You can provide a default configfile pathname like so: - has +configfile ( default => '/etc/myapp.yaml' ); + has '+configfile' => ( default => '/etc/myapp.yaml' ); You can pass an array of filenames if you want, but as usual the array has to be wrapped in a sub ref. - has +configfile ( default => sub { [ '/etc/myapp.yaml', '/etc/myapp_local.yml' ] } ); + has '+configfile' => ( default => sub { [ '/etc/myapp.yaml', '/etc/myapp_local.yml' ] } ); Config files are trivially merged at the top level, with the right-hand files taking precedence.