---
name: "Jifty::Script"
section: "3pm"
platform: "linux"
package: "libjifty-perl"
version: "1.10518+dfsg-2"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/Jifty::Script"
---

# Jifty::Script(3pm)

Base class for all bin/jifty commands

## NAME

Jifty::Script - Base class for all bin/jifty commands

## METHODS

### prepare

`"prepare"` figures out which command to run. If the user wants `"--help"` give them help.

In the normal case, let App::CLI figure out the command-line. If they have no command on the command-line, but a JIFTY\_COMMAND environment variable, try that.  Otherwise, if the GATEWAY\_INTERFACE environment variable is set, assume we are running under CGI with the `"fastcgi"` command.  If all fails, shows the help.

### options

### alias

The alias table lets users type `"fastcgi"` in place of `"FastCGI"`.

### print\_help

Prints out help for the package using pod2usage.

If the user specified --help, prints a brief usage message

If the user specified --man, prints out a manpage
