Skip to content

Commit

Permalink
allow shagadelic to take arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 25, 2009
1 parent 84cc5b6 commit 96ec80e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Lite.pm
Expand Up @@ -80,13 +80,13 @@ sub import {
*{"${caller}::post"} = sub { $route->('post', @_) };

# Shagadelic!
*{"${caller}::shagadelic"} = sub () {
*{"${caller}::shagadelic"} = sub {

# We are the app in a lite environment
$ENV{MOJO_APP} = 'Mojolicious::Lite';

# Start script system
Mojolicious::Scripts->new->run(@ARGV);
Mojolicious::Scripts->new->run(@_ ? @_ : @ARGV);
};
}

Expand Down

0 comments on commit 96ec80e

Please sign in to comment.