From: Damien Krotkine Date: Tue, 29 Mar 2011 16:44:01 +0000 (+0200) Subject: Added getopt_conf documentation X-Git-Tag: 0.37~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Getopt.git;a=commitdiff_plain;h=a4db695b7cf9ca4fc5f984c78c1716ac3d182564 Added getopt_conf documentation --- diff --git a/lib/MooseX/Getopt/GLD.pm b/lib/MooseX/Getopt/GLD.pm index 97298e0..17567b4 100644 --- a/lib/MooseX/Getopt/GLD.pm +++ b/lib/MooseX/Getopt/GLD.pm @@ -90,6 +90,10 @@ role { with 'MooseX::Getopt::GLD'; + # or + + with 'MooseX::Getopt::GLD' => { getopt_conf => [ 'pass_through', ... ] }; + has 'out' => (is => 'rw', isa => 'Str', required => 1); has 'in' => (is => 'rw', isa => 'Str', required => 1); @@ -106,4 +110,11 @@ role { ## on the command line % perl my_app_script.pl -in file.input -out file.dump +=head1 OPTIONS + +This role is a parameterized role. It accepts one configuration parameter, +C. This parameter is an ArrayRef of strings, which are +L configuraion options (see "Configuring Getopt::Long" in +L) + =cut