1Catalyst::ScriptRole(3)User Contributed Perl DocumentatioCnatalyst::ScriptRole(3)
2
3
4
6 Catalyst::ScriptRole - Common functionality for Catalyst scripts.
7
9 package MyApp::Script::Foo;
10 use Moose;
11 use namespace::autoclean;
12
13 with 'Catalyst::ScriptRole';
14
15 sub _application_args { ... }
16
18 Role with the common functionality of Catalyst scripts.
19
21 run
22 The method invoked to run the application.
23
24 print_usage_text
25 Prints out the usage text for the script you tried to invoke.
26
28 application_name
29 The name of the application class, e.g. MyApp
30
32 Catalyst
33
34 MooseX::Getopt
35
37 Catalyst Contributors, see Catalyst.pm
38
40 This library is free software, you can redistribute it and/or modify it
41 under the same terms as Perl itself.
42
43
44
45perl v5.38.0 2023-07-24 Catalyst::ScriptRole(3)