And fix
[gitmo/MooseX-Getopt.git] / lib / MooseX / Getopt / Basic.pm
index e2d2740..316b15c 100644 (file)
@@ -9,8 +9,6 @@ use Carp ();
 
 use Getopt::Long ();
 
-our $VERSION = '0.25';
-
 has ARGV       => (is => 'rw', isa => 'ArrayRef', metaclass => "NoGetopt");
 has extra_argv => (is => 'rw', isa => 'ArrayRef', metaclass => "NoGetopt");
 
@@ -145,7 +143,7 @@ sub _traditional_spec {
     foreach my $opt ( @{ $params{options} } ) {
         push @options, $opt->{opt_string};
 
-        my $identifier = lc($opt->{name});
+        my $identifier = $opt->{name};
         $identifier =~ s/\W/_/g; # Getopt::Long does this to all option names
 
         $name_to_init_arg{$identifier} = $opt->{init_arg};