X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FGetopt.pm;h=97d59c8e4bbc9bf33338291cb03daf4362d0da2e;hb=9f1ec7c0c8860dae99efddfcbba9b30b4dd4bb3f;hp=582c55762d4072e92635dff3c38e393bd70289d0;hpb=4e0866337d6bdd399dc74082463473852b6aba1b;p=gitmo%2FMooseX-Getopt.git diff --git a/lib/MooseX/Getopt.pm b/lib/MooseX/Getopt.pm index 582c557..97d59c8 100644 --- a/lib/MooseX/Getopt.pm +++ b/lib/MooseX/Getopt.pm @@ -9,7 +9,7 @@ use MooseX::Getopt::Meta::Attribute::NoGetopt; use Getopt::Long (); # GLD uses it anyway, doesn't hurt use constant HAVE_GLD => not not eval { require Getopt::Long::Descriptive }; -our $VERSION = '0.12'; +our $VERSION = '0.12_01'; our $AUTHORITY = 'cpan:STEVAN'; has ARGV => (is => 'rw', isa => 'ArrayRef', metaclass => "NoGetopt"); @@ -27,7 +27,7 @@ sub new_with_options { $opt_parser->getoptions( "configfile=s" => \$configfile ); if(!defined $configfile) { - my $cfmeta = $class->meta->get_attribute('configfile'); + my $cfmeta = $class->meta->find_attribute_by_name('configfile'); $configfile = $cfmeta->default if $cfmeta->has_default; } @@ -423,6 +423,10 @@ Stevan Little Estevan@iinteractive.comE Brandon L. Black, Eblblack@gmail.comE +=head1 CONTRIBUTORS + +Ryan D Johnson, Eryan@innerfence.comE + =head1 COPYRIGHT AND LICENSE Copyright 2007-2008 by Infinity Interactive, Inc.