diff options
Diffstat (limited to 'urpm')
-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. |