X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Ftaper.pl;h=8b0d1d4f856a14f087381bf8463fb259a537a6ca;hb=HEAD;hp=1ee47b21af5030a3ed4b49c548bbcd634f08756c;hpb=b221e8dc16f345f8c8d7df8df71f4d36daaabb4c;p=debian%2Famanda diff --git a/server-src/taper.pl b/server-src/taper.pl index 1ee47b2..8b0d1d4 100644 --- a/server-src/taper.pl +++ b/server-src/taper.pl @@ -1,9 +1,10 @@ #! @PERL@ -# Copyright (c) 2009, 2010 Zmanda Inc. All Rights Reserved. +# Copyright (c) 2009-2012 Zmanda Inc. All Rights Reserved. # -# This program is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License version 2 as published -# by the Free Software Foundation. +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY @@ -26,15 +27,18 @@ package main; use Amanda::Util qw( :constants ); use Amanda::Config qw( :init :getconf ); use Amanda::Logfile qw( :logtype_t log_add $amanda_log_trace_log ); -use Amanda::Debug; +use Amanda::Debug qw( debug ); use Amanda::Taper::Controller; use Getopt::Long; Amanda::Util::setup_application("taper", "server", $CONTEXT_DAEMON); my $config_overrides = new_config_overrides($#ARGV+1); + +debug("Arguments: " . join(' ', @ARGV)); Getopt::Long::Configure(qw{bundling}); GetOptions( + 'version' => \&Amanda::Util::version_opt, 'o=s' => sub { add_config_override_opt($config_overrides, $_[1]); }, ) or usage();