my ( $parsed_options, $usage ) = eval {
local $SIG{__WARN__} = sub { push @err, @_ };
- Getopt::Long::Descriptive::describe_options("usage: %c %o", @$opt_spec)
+ Getopt::Long::Descriptive::describe_options($class->_usage_format(%params), @$opt_spec)
};
die join "", grep { defined } @err, $@ if @err or $@;
);
}
+sub _usage_format {
+ return "usage: %c %o";
+}
+
sub _gld_spec {
my ( $class, %params ) = @_;