X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FScript.pm;fp=lib%2FDevel%2FREPL%2FScript.pm;h=c748b95332ea90c02dac8ffacdcbd5b9789172b3;hp=fec8e7df02d7d027f470e75240a6fafa428dff21;hb=b595a818b1d89dbea55ace1af86d0df91c97ba0c;hpb=6bba7e870f4052c929783c48e8598628c8eb078c diff --git a/lib/Devel/REPL/Script.pm b/lib/Devel/REPL/Script.pm index fec8e7d..c748b95 100644 --- a/lib/Devel/REPL/Script.pm +++ b/lib/Devel/REPL/Script.pm @@ -10,18 +10,18 @@ use namespace::autoclean; with 'MooseX::Getopt'; has 'rcfile' => ( - is => 'ro', isa => 'Str', required => 1, default => sub { 'repl.rc' }, + is => 'ro', isa => 'Str', + default => sub { 'repl.rc' }, ); has 'profile' => ( is => 'ro', isa => 'Str', - required => 1, default => sub { $ENV{DEVEL_REPL_PROFILE} || 'Default' }, ); has '_repl' => ( - is => 'ro', isa => 'Devel::REPL', required => 1, + is => 'ro', isa => 'Devel::REPL', default => sub { Devel::REPL->new() } );