show help when no arguments provided to `search`
parent
2a6acfd1d0
commit
0b3f50ea80
|
@ -436,6 +436,11 @@ module Msf
|
|||
# Searches modules for specific keywords
|
||||
#
|
||||
def cmd_search(*args)
|
||||
if args.empty?
|
||||
print_error("Argument required")
|
||||
cmd_search_help
|
||||
return
|
||||
end
|
||||
match = ''
|
||||
search_term = nil
|
||||
@@search_opts.parse(args) { |opt, idx, val|
|
||||
|
|
Loading…
Reference in New Issue