The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MVC::Neaf::CLI - Command line debugger for Not Even A Framework

DESCRIPTION

Run your applications from command line, with various overrides.

This is only useful for debugging, slightly better than CGI.pm's though.

SINOPSYS

    perl application.pl --post /foo/bar arg=42

OPTIONS

  • --post - set method to POST.

  • --method METHOD - set method to anything else.

  • --upload id=/path/to/file - add upload. Requires --post.

  • --cookie name="value" - add cookie.

  • --header name="value" - set http header.

  • --view - force (JS,TT,Dumper) view.

  • --list - don't process request, instead print routes configured in the application.

  • --help - don't process request, instead display a brief usage message

METHODS

The usage doesn't expect these are called directly.

But just for the sake of completeness...

run( $app )

Run the application. This reads command line options, as shown in the summary above.

$app is an MVC::Neaf object.

NOTE Spoils @AGRV.

usage()

Display help message and exit(0).

NOTE exit() used.

list()

List registered Neaf routes.