has config => (
is => 'rw',
isa => 'ArrayRef[Str]',
- auto_deref => 1,
- default => sub { [] },
+ default => sub { [ 'default' ] },
);
# Format for usage description
local @ARGV = @{ $getopt->ARGV };
local $SIG{__WARN__} = sub {
- return warn @_ if $_[0]=~/^\###/; # Smart::Comments
$warnings .= $_[0];
};
eval {
($new_options, $usage) = Getopt::Long::Descriptive::describe_options(
- $self->format, @opts, { getopt_conf => [ $self->config ] }
+ $self->format, @opts, { getopt_conf => $self->config }
);
};
my $e = $@;
is => 'rw',
isa => 'ArrayRef[Str]',
auto_deref => 1,
- default => sub { [] },
+ default => sub { [ 'default' ] },
);
local @ARGV = @{ $getopt->ARGV };
local $SIG{__WARN__} = sub {
- return warn @_ if $_[0]=~/^\###/; # Smart::Comments
$warnings .= $_[0];
};