unfucked test server options and made test pass f'real this time
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Script / Server.pm
index e40da5e..816f9b4 100644 (file)
@@ -36,9 +36,9 @@ has fork => (
     documentation => 'Fork the server',
 );
 
-has listen => (
+has port => (
     traits => [qw(Getopt)],
-    cmd_aliases => 'l',
+    cmd_aliases => 'p',
     isa => Int,
     is => 'ro',
     default => 3000,
@@ -166,7 +166,7 @@ sub run {
 sub _application_args {
     my ($self) = shift;
     return (
-        $self->listen,
+        $self->port,
         $self->host,
         {
            map { $_ => $self->$_ } qw/