From: Karen Etheridge Date: Sun, 27 Jun 2010 06:56:53 +0000 (-0700) Subject: oops forgot to add this file to the commit! X-Git-Tag: 0.30~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=94c4db8f1964c733727b413556c46c922d3fa6eb;p=gitmo%2FMooseX-Getopt.git oops forgot to add this file to the commit! --- diff --git a/lib/MooseX/Getopt/Basic.pm b/lib/MooseX/Getopt/Basic.pm index 0a5eff5..9ef96ba 100644 --- a/lib/MooseX/Getopt/Basic.pm +++ b/lib/MooseX/Getopt/Basic.pm @@ -20,8 +20,10 @@ sub new_with_options { if($class->meta->does_role('MooseX::ConfigFromFile')) { local @ARGV = @ARGV; + # just get the configfile arg now; the rest of the args will be + # fetched later my $configfile; - my $opt_parser = Getopt::Long::Parser->new( config => [ qw( pass_through ) ] ); + my $opt_parser = Getopt::Long::Parser->new( config => [ qw( no_auto_help pass_through ) ] ); $opt_parser->getoptions( "configfile=s" => \$configfile ); if(!defined $configfile) {