Skip to content

Commit

Permalink
Fix use -h to call cmd_use_help
Browse files Browse the repository at this point in the history
It really shouldn't try to load it as a module.
  • Loading branch information
wvu committed Aug 4, 2018
1 parent 9531761 commit ef6be19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/ui/console/command_dispatcher/modules.rb
Expand Up @@ -595,7 +595,7 @@ def cmd_use_help
# Uses a module.
#
def cmd_use(*args)
if (args.length == 0)
if args.length == 0 || args.first == '-h'
cmd_use_help
return false
end
Expand Down

0 comments on commit ef6be19

Please sign in to comment.