projects
/
gitmo/MooseX-Getopt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
allow for has configfile => ( init_arg => 0 )
[gitmo/MooseX-Getopt.git]
/
lib
/
MooseX
/
Getopt
/
Basic.pm
diff --git
a/lib/MooseX/Getopt/Basic.pm
b/lib/MooseX/Getopt/Basic.pm
index
0a3a255
..
9c7e8f7
100644
(file)
--- a/
lib/MooseX/Getopt/Basic.pm
+++ b/
lib/MooseX/Getopt/Basic.pm
@@
-36,7
+36,7
@@
sub process_argv {
if (!defined $configfile)
{
my $key = $cfmeta->init_arg;
- $configfile = $constructor_params->{$key} if $key;
+ $configfile = $constructor_params->{$key} if defined $key;
}
if(!defined $configfile) {