Method: Rex::Ui::Text::DispatcherShell::CommandDispatcher#deprecated_help

Defined in:
lib/rex/ui/text/dispatcher_shell.rb

#deprecated_help(method = nil) ⇒ Object



142
143
144
145
146
147
148
149
150
151
# File 'lib/rex/ui/text/dispatcher_shell.rb', line 142

def deprecated_help(method=nil)
  cmd = caller[0].match(/`cmd_(.*)_help'/)[1]
  print_error "The #{cmd} command is DEPRECATED"
  if cmd == "db_autopwn"
    print_error "See http://r-7.co/xY65Zr instead"
  elsif method and self.respond_to?("cmd_#{method}_help", true)
    print_error "Use 'help #{method}' instead"
    self.send("cmd_#{method}_help")
  end
end