Unify options, get rid of -h which only worked on the CGI script anyway (-h is host...
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Script / Test.pm
index 268b1cd..36934b2 100644 (file)
@@ -10,8 +10,9 @@ sub run {
 
     Catalyst::Test->import($self->application_name);
 
-    print request($ARGV[0])->content  . "\n";
-
+    foreach my $arg (@{ $self->ARGV }) {
+        print request($arg)->content  . "\n";
+    }
 }
 
 
@@ -23,11 +24,14 @@ Catalyst::Script::Test - Test Catalyst application on the command line
 
 =head1 SYNOPSIS
 
-See L<Catalyst>.
+  myapp_test.pl [options] /path
+
+  Options:
+  -h     --help           display this help and exits
 
 =head1 DESCRIPTION
 
-FIXME
+Script to perform a test hit against your application and display the output.
 
 =head1 AUTHORS