Skip to content

Commit

Permalink
Merge pull request #2, Pass args through to search for cmd_use
Browse files Browse the repository at this point in the history
  • Loading branch information
adfoster-r7 authored Aug 27, 2020
2 parents 43ecb41 + 4ace8e3 commit de0826f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/ui/console/command_dispatcher/modules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ def cmd_use(*args)
# Avoid trying to use the search result if it exactly matches
# the module we were trying to load. The module cannot be
# loaded and searching isn't going to change that.
mods_found = cmd_search('-I', '-u', mod_name)
mods_found = cmd_search('-I', '-u', *args)
end

unless mods_found
Expand Down

0 comments on commit de0826f

Please sign in to comment.