diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-06-16 01:24:59 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-06-16 01:24:59 +0000 |
commit | 8397cba3e2a0ba7b6c38d1bff6338673f970bf0f (patch) | |
tree | e68f3c3c211b83a5423bdd844bc67eb016aaadf3 /urpm/args.pm | |
parent | 2e793cecafd40a5ba034a7b9b3e1444ad166fa30 (diff) | |
download | urpmi-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/args.pm')
-rw-r--r-- | urpm/args.pm | 4 |
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. |