Subject: | s/help/help_flag/ in 0.30 broke existing MooseX::Getopt programs |
The help attribute was renamed in 0.30 (81b19ed83c) so that any
program that used MooseX::Getopt with a custom help switch is now
returning empty output. E.g. this program:
package Xailo;
use 5.012;
use Moose;
with 'MooseX::Getopt';
has $ENV{help} => (
traits => [ qw/ Getopt / ],
isa => 'Bool',
is => 'ro',
default => 0,
documentation => "You're soaking it in",
);
package xailo;
Xailo->new_with_options;
This worked before:
$ help=help perl xailo --help
You now have to do:
$ help=help_flag perl xailo --help
usage: xailo [long options...]
--help_flag You're soaking it in
In addition, you have to specify cmd_flag now so it's called --help,
not --help_flag. Would it be possible to rename or alias the help
attribute for backwards compatibility?