only, so that it can re-execute itself with the right
options. Getopt::Long eats @ARGV before we have a chance to get to it.
This file documents the revision history for Perl extension Catalyst-Devel.
+1.18
+ - More fixes for the Win32 restarter. It was effectively
+ ignoring all command-line options except those related to
+ the restarter itself.
+
+
1.17 2009-05-24 18:18:17
- Catalyst::Restarter::Forking loaded the threads and
Thread::Cancel modules, even though it doesn't need them.
use warnings;
our $VERSION = '1.17';
-our $CATALYST_SCRIPT_GEN = 38;
+our $CATALYST_SCRIPT_GEN = 39;
$VERSION = eval $VERSION;
my $restarter = $subclass->new(
%args,
start_sub => $runner,
+ argv => \@argv,
);
$restarter->run_and_watch;
required => 1,
);
+has argv => (
+ is => 'ro',
+ isa => 'ArrayRef',
+ required => 1,
+);
+
has _watcher => (
is => 'rw',
isa => 'File::ChangeNotify::Watcher',
# This is totally hack-tastic, and is probably much slower, but it
# does seem to work.
- my @command = ( $^X, $0, grep { ! /^\-r/ } @ARGV );
+ my @command = ( $^X, $0, grep { ! /^\-r/ } @{ $self->argv } );
my $child = Proc::Background->new(@command);