From: Ken Youens-Clark Date: Sat, 4 Oct 2003 01:22:46 +0000 (+0000) Subject: No longer require file arg here -- let modules decide. X-Git-Tag: v0.04~128 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2542703f97f9494da7e3d5e3b295aa699c9e8a4f;p=dbsrgits%2FSQL-Translator.git No longer require file arg here -- let modules decide. --- diff --git a/bin/sqlt b/bin/sqlt index 4a2de7e..9f7182c 100755 --- a/bin/sqlt +++ b/bin/sqlt @@ -2,7 +2,7 @@ # vim: set ft=perl: # ------------------------------------------------------------------- -# $Id: sqlt,v 1.4 2003-10-03 17:08:46 kycl4rk Exp $ +# $Id: sqlt,v 1.5 2003-10-04 01:22:46 kycl4rk Exp $ # ------------------------------------------------------------------- # Copyright (C) 2002 Ken Y. Clark , # darren chamberlain @@ -113,7 +113,7 @@ use Pod::Usage; use SQL::Translator; use vars qw( $VERSION ); -$VERSION = sprintf "%d.%02d", q$Revision: 1.4 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.5 $ =~ /(\d+)\.(\d+)/; my $from; # the original database my $to; # the destination database @@ -215,7 +215,7 @@ if ( $list ) { exit(0); } -pod2usage(2) unless $from && $to && @files; +pod2usage( msg => 'Please supply "from" and "to" arguments' ) unless $from && $to; $translator->parser($from); $translator->producer($to);