From fd76226b2aaf12e520213f5bb8474514cd8826e7 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 13 Feb 2006 14:45:56 +0000 Subject: Die if unknown command-line options are given. --- urpmf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urpmf') diff --git a/urpmf b/urpmf index ed9d218b..2799f9de 100755 --- a/urpmf +++ b/urpmf @@ -101,7 +101,7 @@ our $expr; # regexp to match against our %uniq; #- parse arguments list. -urpm::args::parse_cmdline(); +urpm::args::parse_cmdline() or exit(1); if ($qf eq '%default') { #- nothing on the command-line : default is to search on file names @@ -166,7 +166,7 @@ $urpm->{error}("qf:[$qf]\ncallback:\n$callback") if our $debug; $callback = eval $callback; if ($@) { $debug and warn "Internal error: $@\n"; - usage; + exit(1); } if ($env) { -- cgit v1.2.1