Subject: | Need a way to pass config to GLD. |
Date: | Tue, 18 Jun 2013 12:52:15 -0400 |
To: | bug-MouseX-Getopt [...] rt.cpan.org |
From: | "Bhaskar V. Karambelkar" <bhaskarvk [...] gmail.com> |
In MooseX::Getopt::GLD, I can pass config to GLD, with something like
with 'MooseX::Getopt::GLD' => { getopt_conf => [ 'pass_through' ] };
But MouseX::Getopt::GLD does not support such a construct. Looking at
MooseX::Getopt::GLD's code, it is very trivial to add the same support to
MouseX module as well.
w/o this , there's no way to pass any options to GLD, and if I can't pass
'pass_through' then extra_argv is never populated, as MouseX::Getopt errors
out, on seeing a non recognized option.
Also MooseX::Getopt has a 'print_usage_text' method, which makes adding
custom text for help arguments very easy by putting an 'around' call around
the 'print_usage_text'. It would be nice to have the same feature in
MouseX::Getopt too.
thanks