drop namespace::autoclean
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Script / CGI.pm
index ede29b5..4eb9be8 100644 (file)
@@ -1,16 +1,13 @@
 package Catalyst::Script::CGI;
 use Moose;
-BEGIN { $ENV{CATALYST_ENGINE} ||= 'CGI' }
-use namespace::autoclean;
+use namespace::clean -except => [ 'meta' ];
 
-with 'Catalyst::ScriptRole';
+sub _plack_engine_name { 'CGI' }
 
-sub run {
-    my ($self) = @_;
-    $self->_run_application;
-}
+with 'Catalyst::ScriptRole';
 
 __PACKAGE__->meta->make_immutable;
+1;
 
 =head1 NAME
 
@@ -18,11 +15,18 @@ Catalyst::Script::CGI - The CGI Catalyst Script
 
 =head1 SYNOPSIS
 
-See L<Catalyst>.
+  myapp_cgi.pl [options]
+
+  Options:
+  -?     --help           display this help and exits
 
 =head1 DESCRIPTION
 
-FIXME
+This is a script to run the Catalyst engine specialized for the CGI environment.
+
+=head1 SEE ALSO
+
+L<Catalyst::ScriptRunner>
 
 =head1 AUTHORS