Revision history for Perl extension MooseX-Getopt
+ * MooseX::Getopt
+ - Fix Getopt config spec for --configfile (t0m)
+
* Tests
- Fix warning from tests with new Moose (t0m)
- Fix tests on Win32 from RT#44909 (taro-nishino)
my $opt_string = join(q{|}, $flag, @aliases);
- if ($attr->has_type_constraint) {
+ if ($attr->name eq 'configfile') {
+ $opt_string .= '=s';
+ }
+ elsif ($attr->has_type_constraint) {
my $type = $attr->type_constraint;
if (MooseX::Getopt::OptionTypeMap->has_option_type($type)) {
$opt_string .= MooseX::Getopt::OptionTypeMap->get_option_type($type)