DOKK / manpages / debian 10 / libcatalyst-perl / Catalyst::ScriptRole.3pm.en
Catalyst::ScriptRole(3pm) User Contributed Perl Documentation Catalyst::ScriptRole(3pm)

Catalyst::ScriptRole - Common functionality for Catalyst scripts.

    package MyApp::Script::Foo;
    use Moose;
    use namespace::autoclean;
    with 'Catalyst::ScriptRole';
    sub _application_args { ... }

Role with the common functionality of Catalyst scripts.

The method invoked to run the application.

Prints out the usage text for the script you tried to invoke.

The name of the application class, e.g. MyApp

Catalyst

MooseX::Getopt

Catalyst Contributors, see Catalyst.pm

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

2019-01-19 perl v5.28.1