---
name: "Catalyst::ScriptRole"
section: "3pm"
platform: "linux"
package: "libcatalyst-perl"
version: "5.90132-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catalyst::ScriptRole"
---

# Catalyst::ScriptRole(3pm)

Common functionality for Catalyst scripts.

## NAME

Catalyst::ScriptRole - Common functionality for Catalyst scripts.

## SYNOPSIS

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

## DESCRIPTION

Role with the common functionality of Catalyst scripts.

## METHODS

### run

The method invoked to run the application.

### print\_usage\_text

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

## ATTRIBUTES

### application\_name

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

## SEE ALSO

Catalyst

MooseX::Getopt

## AUTHORS

Catalyst Contributors, see Catalyst.pm

## COPYRIGHT

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