diff --git a/lib/msf/ui/console/command_dispatcher/core.rb b/lib/msf/ui/console/command_dispatcher/core.rb index a9269a94eb06c..078eb561cdf9e 100644 --- a/lib/msf/ui/console/command_dispatcher/core.rb +++ b/lib/msf/ui/console/command_dispatcher/core.rb @@ -198,7 +198,10 @@ def name "Core" end - + # + # Displays help for the color command. + # + # @return [void] def cmd_color_help print_line "Usage: color <'true'|'false'|'auto'>" print_line @@ -225,13 +228,14 @@ def cmd_color(*args) # # @param str [String] the string currently being typed before tab was hit # @param words [Array] the previously completed words on the command line. words is always - # at least 1 when tab completion has reached this stage since the command itself has been completed - # + # @return [Array] List of possible completions (auto, true, false). def cmd_color_tabs(str, words) return [] if words.length > 1 %w[auto true false] end - + # + # Displays help for the cd command. + # def cmd_cd_help print_line "Usage: cd " print_line @@ -242,6 +246,8 @@ def cmd_cd_help # # Change the current working directory # + # @param args [Array] The directory path to change to. + # @return [void] def cmd_cd(*args) if(args.length == 0) print_error("No path specified") @@ -313,7 +319,9 @@ def cmd_tips_tabs(str, words) [] end - + # + # Displays useful Metasploit tips and tricks. + # def cmd_tips_help print_line "Usage: tips [options]" print_line