From: Tomas Doran (t0m) Date: Fri, 23 Oct 2009 16:37:14 +0000 (+0100) Subject: Trim trailing whitespace X-Git-Tag: 0.24~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=035b1668f1af3262c54a6f6692b0dc50ab388020;p=gitmo%2FMooseX-Getopt.git Trim trailing whitespace --- diff --git a/lib/MooseX/Getopt.pm b/lib/MooseX/Getopt.pm index 055eee3..cc265b5 100644 --- a/lib/MooseX/Getopt.pm +++ b/lib/MooseX/Getopt.pm @@ -51,7 +51,7 @@ sub new_with_options { } my $constructor_params = ( @params == 1 ? $params[0] : {@params} ); - + Carp::croak("Single parameters to new_with_options() must be a HASH ref") unless ref($constructor_params) eq 'HASH'; @@ -435,7 +435,7 @@ This method will take a set of default C<%params> and then collect params from the command line (possibly overriding those in C<%params>) and then return a newly constructed object. -The special parameter C, if specified should point to an array +The special parameter C, if specified should point to an array reference with an array to use instead of C<@ARGV>. If L fails (due to invalid arguments),