diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-02-13 14:45:56 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-02-13 14:45:56 +0000 |
commit | fd76226b2aaf12e520213f5bb8474514cd8826e7 (patch) | |
tree | 550d1e94fa9c04d59c9745d6762d1623372d55a0 /urpmf | |
parent | a3922a35162b7a65dcc76cf52a9a68f8a34f89f9 (diff) | |
download | urpmi-fd76226b2aaf12e520213f5bb8474514cd8826e7.tar urpmi-fd76226b2aaf12e520213f5bb8474514cd8826e7.tar.gz urpmi-fd76226b2aaf12e520213f5bb8474514cd8826e7.tar.bz2 urpmi-fd76226b2aaf12e520213f5bb8474514cd8826e7.tar.xz urpmi-fd76226b2aaf12e520213f5bb8474514cd8826e7.zip |
Die if unknown command-line options are given.
Diffstat (limited to 'urpmf')
-rwxr-xr-x | urpmf | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |