NAME

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

VERSION

version 2.010

DESCRIPTION

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

ATTRIBUTES

magpie

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

METHODS

log_init

$cmd->log_init($opts);

Initializes the logger attribute of magpie depending on the value of verbose options.

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().

AUTHOR

Jerome Quelin <jquelin@gmail.com>

COPYRIGHT AND LICENSE

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.