* MooseX::Getopt
- Enable and document the argv parameter to the constructor.
- Applied patches in RT43200 and RT43255
+ - Applied patch from RT#47766 to not die if SimpleConfig cannot find the
+ default config file name.
0.20 Wed. July 9 2009
- ~ fix MANIFEST.SKIP to avoid double-packaging
+ - fix MANIFEST.SKIP to avoid double-packaging
0.19 Wed. July 8 2009
* MooseX::Getopt
if(!defined $configfile) {
my $cfmeta = $class->meta->find_attribute_by_name('configfile');
$configfile = $cfmeta->default if $cfmeta->has_default;
+ if (defined $configfile) {
+ $config_from_file = eval {
+ $class->get_config_from_file($configfile);
+ };
+ if ($@) {
+ die $@ unless $@ =~ /Specified configfile '\Q$configfile\E' does not exist/;
+ }
+ }
}
-
- if(defined $configfile) {
+ else {
$config_from_file = $class->get_config_from_file($configfile);
}
}