1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-29 18:07:27 +01:00

add -i option as a requirement

This commit is contained in:
Rob Fuller 2014-02-18 14:08:57 -05:00
parent fadb688143
commit b19a652d78

View File

@ -54,7 +54,10 @@ Usage: #{__FILE__} [options]|
begin
opts.parse!(args)
if options['input'] == nil
puts opts
raise OptionParser::MissingArgument, "-i is a required option"
end
unless ::File.exists?(options['input'])
raise OptionParser::InvalidArgument, "Not found: #{options['input']}"
end