From 49fb4f3552182b2805aedfdb218eddba1f59ee43 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 10 Oct 2005 14:25:34 +0000 Subject: Abort on unrecognized options for urpmq too --- urpm/args.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'urpm') 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; -- cgit v1.2.1