Skip to content

Commit

Permalink
Fix a stack trace when no mode is selected.
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/svn/framework3/trunk@12859 4d416f70-5f16-0410-b530-b9f4589650da
  • Loading branch information
bannedit committed Jun 5, 2011
1 parent de931d5 commit fd04578
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions msfbinscan
Original file line number Diff line number Diff line change
Expand Up @@ -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|

Expand Down

0 comments on commit fd04578

Please sign in to comment.