summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-16 01:24:59 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-16 01:24:59 +0000
commit8397cba3e2a0ba7b6c38d1bff6338673f970bf0f (patch)
treee68f3c3c211b83a5423bdd844bc67eb016aaadf3 /urpm
parent2e793cecafd40a5ba034a7b9b3e1444ad166fa30 (diff)
downloadurpmi-8397cba3e2a0ba7b6c38d1bff6338673f970bf0f.tar
urpmi-8397cba3e2a0ba7b6c38d1bff6338673f970bf0f.tar.gz
urpmi-8397cba3e2a0ba7b6c38d1bff6338673f970bf0f.tar.bz2
urpmi-8397cba3e2a0ba7b6c38d1bff6338673f970bf0f.tar.xz
urpmi-8397cba3e2a0ba7b6c38d1bff6338673f970bf0f.zip
urpmf should warn on unknown options
Diffstat (limited to 'urpm')
-rw-r--r--urpm/args.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index 9ed610a5..56d39718 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -169,6 +169,10 @@ my %options_spec = (
# This is for -! -( -)
$::expr .= $1;
}
+ elsif ($p =~ /^--?(.+)/) {
+ # unrecognized option
+ die "Unknown option: $1\n";
+ }
else {
# This is for non-option arguments.
# Assume a regex unless a ++ is inside the string.