summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-10 14:25:34 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-10 14:25:34 +0000
commit49fb4f3552182b2805aedfdb218eddba1f59ee43 (patch)
tree8c85bb8605f66b2716ef4de4fda56a8110279ae9 /urpm
parent30df75df035e1dab1df228ea03e86738e9510f52 (diff)
downloadurpmi-49fb4f3552182b2805aedfdb218eddba1f59ee43.tar
urpmi-49fb4f3552182b2805aedfdb218eddba1f59ee43.tar.gz
urpmi-49fb4f3552182b2805aedfdb218eddba1f59ee43.tar.bz2
urpmi-49fb4f3552182b2805aedfdb218eddba1f59ee43.tar.xz
urpmi-49fb4f3552182b2805aedfdb218eddba1f59ee43.zip
Abort on unrecognized options for urpmq too
Diffstat (limited to 'urpm')
-rw-r--r--urpm/args.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index c808d8d6..e803c297 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -240,6 +240,8 @@ my %options_spec = (
if ($x =~ /\.rpm$/) {
if (-r $x) { push @::files, $x }
else { print STDERR N("urpmq: cannot read rpm file \"%s\"\n", $x) }
+ } elsif ($x =~ /^--?(.+)/) { # unrecognized option
+ die "Unknown option: $1\n";
} else {
if ($options{src}) {
push @::src_names, $x;