summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-12-13 13:27:45 +0000
committerFrancois Pons <fpons@mandriva.com>2002-12-13 13:27:45 +0000
commit90116b81b7e4ce0b99be4c1235ac96702202beaf (patch)
tree978d05d4f83e595595b2be5ca24e71906d81e467 /urpmq
parentb147827046fbaede65f06b1b15b8729afc758399 (diff)
downloadurpmi-90116b81b7e4ce0b99be4c1235ac96702202beaf.tar
urpmi-90116b81b7e4ce0b99be4c1235ac96702202beaf.tar.gz
urpmi-90116b81b7e4ce0b99be4c1235ac96702202beaf.tar.bz2
urpmi-90116b81b7e4ce0b99be4c1235ac96702202beaf.tar.xz
urpmi-90116b81b7e4ce0b99be4c1235ac96702202beaf.zip
4.1-18mdk
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpmq b/urpmq
index 445fd8c2..13e3b10e 100755
--- a/urpmq
+++ b/urpmq
@@ -80,8 +80,9 @@ my $urpm = new urpm;
#- parse arguments list.
my @nextargv;
-for (@ARGV) {
- /^--help$/ and do { usage; next };
+@ARGV or usage;
+while (defined($_ = shift @ARGV)) {
+ /^--help$/ and do { usage };
/^--update$/ and do { $query->{update} = 1; next };
/^--media$/ and do { push @nextargv, \$query->{media}; next };
/^--mediums$/ and do { push @nextargv, \$query->{media}; next };