-#!/usr/bin/perl
+#!/usr/bin/env perl
use strict;
use warnings;
use DBIx::Class::Admin::Descriptive;
#use Getopt::Long::Descriptive;
use DBIx::Class::Admin;
-require lib;
my $short_description = "utility for administrating DBIx::Class schemata";
my $synopsis_text =q|
['resultset|resultset-class|class:s' => 'The resultset to operate on for data manipulation' ],
['config-stanza:s' => 'Where in the config to find the connection_info, supply in form MyApp::Model::DB',],
['config:s' => 'Supply the config file for parsing by Config::Any', { depends => 'config_stanza'} ],
- ['connect-info:s%' => 'Supply the connect info as additonal options ie -I dsn=<dsn> user=<user> password=<pass> '],
+ ['connect-info:s%' => 'Supply the connect info as additional options ie -I dsn=<dsn> user=<user> password=<pass> '],
['connect:s' => 'Supply the connect info as a json string' ],
['sql-dir:s' => 'The directory where sql diffs will be created'],
['sql-type:s' => 'The RDBMs flavour you wish to use'],
# FIXME - lowercasing will eventually go away when Getopt::Long::Descriptive is fixed
if($opts->{i}) {
- lib->import(delete $opts->{i});
+ require lib;
+ lib->import( @{delete $opts->{i}} );
}
if($opts->{help}) {
- $usage->die();
+ $usage->die();
}
# option compatability mangle