X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=bin%2Fsqlt;h=45a5c33e331f830c001cbd7d0bb20440a4865753;hb=638e82c28c896513ae397d714d27c5346b9c1916;hp=0a434ed9bc2987a68d9ae9fb95a96b3f2b37f8a1;hpb=2cd6675ea38c4162db3bf54197d005919ca268de;p=dbsrgits%2FSQL-Translator.git diff --git a/bin/sqlt b/bin/sqlt index 0a434ed..45a5c33 100755 --- a/bin/sqlt +++ b/bin/sqlt @@ -2,7 +2,7 @@ # vim: set ft=perl: # ------------------------------------------------------------------- -# $Id: sqlt,v 1.6 2003-10-10 16:38:43 dlc Exp $ +# $Id: sqlt,v 1.7 2003-10-10 16:44:27 dlc 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.6 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.7 $ =~ /(\d+)\.(\d+)/; my $from; # the original database my $to; # the destination database @@ -168,7 +168,8 @@ GetOptions( 'db-password:s' => \$db_password, ) or pod2usage(2); -my @files = @ARGV || '-'; # source files +my @files = @ARGV; # source files +@files = ('-') unless (@files); pod2usage(1) if $help;