summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/args.pm')
-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;