allow for has configfile => ( init_arg => 0 )
[gitmo/MooseX-Getopt.git] / lib / MooseX / Getopt / Basic.pm
index 0a3a255..9c7e8f7 100644 (file)
@@ -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) {