From ef6be1980f6129ea782c6bd13057e4ccab8aee86 Mon Sep 17 00:00:00 2001 From: William Vu Date: Sat, 4 Aug 2018 15:32:58 -0500 Subject: [PATCH] Fix use -h to call cmd_use_help It really shouldn't try to load it as a module. --- lib/msf/ui/console/command_dispatcher/modules.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/ui/console/command_dispatcher/modules.rb b/lib/msf/ui/console/command_dispatcher/modules.rb index cb3c40ccd27a..18987d5f366d 100644 --- a/lib/msf/ui/console/command_dispatcher/modules.rb +++ b/lib/msf/ui/console/command_dispatcher/modules.rb @@ -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