traits => ['NoGetopt'],
);
- # captures the options: --help --usage --?
+ # captures the options: --help --usage --? -? -h
has help_flag => (
is => 'ro', isa => 'Bool',
traits => ['Getopt'],
cmd_flag => 'help',
- cmd_aliases => [ qw(usage ?) ],
+ cmd_aliases => [ qw(usage ? h) ],
documentation => 'Prints this usage information.',
);
This role is a parameterized role. It accepts one configuration parameter,
C<getopt_conf>. This parameter is an ArrayRef of strings, which are
-L<Getopt::Long> configuraion options (see "Configuring Getopt::Long" in
+L<Getopt::Long> configuration options (see "Configuring Getopt::Long" in
L<Getopt::Long>)
=cut