diff options
author | Francois Pons <fpons@mandriva.com> | 2002-12-13 13:27:45 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-12-13 13:27:45 +0000 |
commit | 90116b81b7e4ce0b99be4c1235ac96702202beaf (patch) | |
tree | 978d05d4f83e595595b2be5ca24e71906d81e467 /urpmq | |
parent | b147827046fbaede65f06b1b15b8729afc758399 (diff) | |
download | urpmi-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-x | urpmq | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 }; |