From: Eden Cardim Date: Fri, 14 May 2010 02:03:00 +0000 (+0000) Subject: debug and include_dirs integration between dbicadmin and DBIx::Class::Admin X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4e2873b1123307fddee4eb30fc3ae5eb8215e7bb;p=dbsrgits%2FDBIx-Class-Historic.git debug and include_dirs integration between dbicadmin and DBIx::Class::Admin --- diff --git a/script/dbicadmin b/script/dbicadmin index 52a5491..3be43c2 100755 --- a/script/dbicadmin +++ b/script/dbicadmin @@ -62,7 +62,8 @@ my ($opts, $usage) = describe_options( ['force' => 'Be forceful with some operations'], ['trace' => 'Turn on DBIx::Class trace output'], ['quiet' => 'Be less verbose'], - ['I:s@' => 'Same as perl\'s -I'] + ['debug' => 'Print debug information'], + ['I:s@' => 'Same as perl\'s -I'], ) ); @@ -87,8 +88,8 @@ if($opts->{selfinject_pod}) { ); } -if($opts->{I}) { - $opts->{include} = delete $opts->{I}; +if($opts->{i}) { + $opts->{include_dirs} = delete $opts->{i}; } if($opts->{help}) { @@ -99,10 +100,8 @@ if($opts->{help}) { if($opts->{connect}) { $opts->{connect_info} = delete $opts->{connect}; } - my $admin = DBIx::Class::Admin->new( %$opts ); - my $action = $opts->{action}; $action = $opts->{op} if ($action eq 'op');