#!/usr/bin/perl
# -------------------------------------------------------------------
-# $Id: sqlt-dumper,v 1.1 2003-08-26 03:56:43 kycl4rk Exp $
+# $Id: sqlt-dumper,v 1.2 2003-10-15 13:46:29 dlc Exp $
# -------------------------------------------------------------------
# Copyright (C) 2003 Ken Y. Clark <kclark@cpan.org>
#
use Pod::Usage;
use Getopt::Long;
use SQL::Translator;
+use File::Basename qw(basename);
use vars '$VERSION';
-$VERSION = sprintf "%d.%02d", q$Revision: 1.1 $ =~ /(\d+)\.(\d+)/;
+$VERSION = sprintf "%d.%02d", q$Revision: 1.2 $ =~ /(\d+)\.(\d+)/;
my ( $help, $db, $add_truncate, $skip, $db_user, $db_pass, $dsn );
GetOptions(
$parser->($t, $t->data);
my $schema = $t->schema;
my $now = localtime;
+my $prog = basename $0;
my $out = <<"EOF";
#!/usr/bin/perl
#
# Generated $now
-# By sqlt-dumper.pl, part of the SQLFairy project
+# By $prog, part of the SQLFairy project
# For more info, see http://sqlfairy.sourceforge.net/
#