From fd04578a9096897963309a3c2978cc6e30f1f74f Mon Sep 17 00:00:00 2001 From: David Rude Date: Sun, 5 Jun 2011 14:27:11 +0000 Subject: [PATCH] Fix a stack trace when no mode is selected. git-svn-id: file:///home/svn/framework3/trunk@12859 4d416f70-5f16-0410-b530-b9f4589650da --- msfbinscan | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/msfbinscan b/msfbinscan index e5c278988161..6f59645bfada 100755 --- a/msfbinscan +++ b/msfbinscan @@ -126,6 +126,11 @@ rescue OptionParser::InvalidOption exit(1) end +if not mode + puts "A mode must be selected" + exit(1) +end + # check if the file is a directory if it is collect all the entries ARGV.each do |file|