
App::Magpie::App::Command - base class for sub-commands

version 2.000

This module is the base class for all sub-commands. It provides some methods to control logging.

The App::Magpie object responsible for the real operations.

$cmd->log_init($opts);
Initializes the logger attribute of magpie depending on the value of verbose options.
my @opts = $self->verbose_options;
Return an array of verbose options to be used in a command's opt_spec method. Those options can then be used by log_init().

Jerome Quelin <jquelin@gmail.com>

This software is copyright (c) 2011 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.