X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FRunnable%2FUtil%2FArgParser.pm;fp=lib%2FMooseX%2FRunnable%2FUtil%2FArgParser.pm;h=9263fa23d62357001112b0b8e906aaf87c88e08e;hb=29f9c8ccc4b6c72ed0b1a8455e2c2e72da90d95b;hp=965d39ff58c0cd69bc9802f4a2ce50a430de7f32;hpb=a56444e26e4bde3e2cc427449a16d3d16a600a89;p=gitmo%2FMooseX-Runnable.git diff --git a/lib/MooseX/Runnable/Util/ArgParser.pm b/lib/MooseX/Runnable/Util/ArgParser.pm index 965d39f..9263fa2 100644 --- a/lib/MooseX/Runnable/Util/ArgParser.pm +++ b/lib/MooseX/Runnable/Util/ArgParser.pm @@ -1,7 +1,8 @@ package MooseX::Runnable::Util::ArgParser; use Moose; use MooseX::Types::Moose qw(HashRef ArrayRef Str Bool); -use MooseX::Types::Path::Class qw(Dir); +use MooseX::Types::Path::Tiny qw(Path); +use Path::Tiny; # exports path() use List::MoreUtils qw(first_index); use FindBin; @@ -30,7 +31,7 @@ has 'modules' => ( has 'include_paths' => ( is => 'ro', - isa => ArrayRef[Dir], + isa => ArrayRef[Path], lazy_build => 1, auto_deref => 1, ); @@ -119,7 +120,7 @@ sub _build_modules { sub _build_include_paths { my $self = shift; my @args = $self->argv; - return [ map { Path::Class::dir($_) } _look_for_dash_something 'I', @args ]; + return [ map { path($_) } _look_for_dash_something 'I', @args ]; } sub _build_is_help {