X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Famlogroll.pl;h=9611a8a39ca118f6cf00b126005ee8b52c4c9fd2;hb=refs%2Ftags%2Fupstream%2F3.3.1;hp=7d937479a1b0e08006e9510e0e740dd29ff48577;hpb=cd0b924f27312d57bd42f6c4fae2b795139e2d0b;p=debian%2Famanda diff --git a/server-src/amlogroll.pl b/server-src/amlogroll.pl index 7d93747..9611a8a 100644 --- a/server-src/amlogroll.pl +++ b/server-src/amlogroll.pl @@ -24,14 +24,17 @@ use warnings; use Amanda::Util qw( :constants ); use Amanda::Config qw( :init ); use Amanda::Logfile qw( log_rename get_current_log_timestamp $amanda_log_trace_log ); -use Amanda::Debug; +use Amanda::Debug qw( debug ); use Getopt::Long; Amanda::Util::setup_application("amlogroll", "server", $CONTEXT_CMDLINE); 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();