Skip to content

Commit

Permalink
Implemented twiggy -v
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Mar 28, 2010
1 parent c162a31 commit 40c2ad0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/twiggy
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ use strict;
use lib "lib";
use Plack::Runner;

my $runner = Plack::Runner->new(server => 'Twiggy', env => 'deployment');
sub version {
require Twiggy;
print "Twiggy $Twiggy::VERSION\n";
}

my $runner = Plack::Runner->new(server => 'Twiggy', env => 'deployment', version_cb => \&version);
$runner->parse_options(@ARGV);
$runner->run;

Expand Down

0 comments on commit 40c2ad0

Please sign in to comment.