[% startperl %]
-use strict;
-use warnings;
-use Getopt::Long;
-use Pod::Usage;
-use FindBin;
-use lib "$FindBin::Bin/../lib";
-use Catalyst::Test '[% name %]';
-
-my $help = 0;
-
-GetOptions( 'help|?' => \$help );
-
-pod2usage(1) if ( $help || !$ARGV[0] );
-
-print request($ARGV[0])->content . "\n";
+use Catalyst::ScriptRunner;
+Catalyst::ScriptRunner->run('[% name %]', 'Test');
1;
[% appprefix %]_test.pl [options] uri
Options:
- -help display this help and exits
+ --help display this help and exits
Examples:
[% appprefix %]_test.pl http://localhost/some_action