NAME

MooseX::App::Role - Use documentation attributes in a role

SYNOPSIS

package MyApp::Role::SomeRole;

use Moose::Role; # optional
use MooseX::App::Role;

has 'testattr' => (
   isa             => 'rw',
   command_tags    => [qw(Important! Nice))],
);

DESCRIPTION

When loading this package in a role you can use the command_tags attribute to document an attribute.

Alternatively you can also just use attribute traits:

has 'testattr' => (
   isa             => 'rw',
   traits          => [qw(App::Tags)]
   command_tags    => [qw(Important! Nice))],
);