diff options
Diffstat (limited to 'Rpmdrake/init.pm')
-rw-r--r-- | Rpmdrake/init.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Rpmdrake/init.pm b/Rpmdrake/init.pm index 2a87d14b..9d1bfc05 100644 --- a/Rpmdrake/init.pm +++ b/Rpmdrake/init.pm @@ -28,6 +28,7 @@ use MDK::Common::Func 'any'; use lib qw(/usr/lib/libDrakX); use common; BEGIN { $::no_global_argv_parsing = 1 } +require urpm::args; use Exporter; our @ISA = qw(Exporter); @@ -111,6 +112,10 @@ foreach (@ARGV) { exit(0); } elsif ($val =~ /^(test|expert)$/) { eval "\$::$1 = 1"; + } elsif ($val =~ /^(q|quiet)$/) { + urpm::args::set_verbose(-1); + } elsif ($val =~ /^(v|verbose)$/) { + urpm::args::set_verbose(1); } else { $rpmdrake_options{$val} = 1; } |