MooX::Cmd::ChainedOptions
For applications using MooX::Cmd and MooX::Options,
MooX::Cmd::ChainedOptions transparently provides access to command line
options from further up the command chain.
For example, if an application provides options at each level of the
command structure:
app --app-opt cmd --cmd-opt subcmd --subcmd-opt
The subcmd object will have direct access to the "app_option" and
"cmd_option" options via object attributes:
sub execute {
print $self->app_opt, "\n";
print $self->cmd_opt, "\n";
print $self->subcmd_opt, "\n";
}
INSTALLATION
This is a Perl module distribution. It should be installed with whichever
tool you use to manage your installation of Perl, e.g. any of
cpanm .
cpan .
cpanp -i .
Consult
http://www.cpan.org/modules/INSTALL.html for further instruction.
Should you wish to install this module manually, the procedure is
perl Makefile.PL
make
make test
make install
COPYRIGHT AND LICENSE
This software is Copyright (c) 2017 by Smithsonian Astrophysical
Observatory.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007