From f6fd33a3eb602185d029a4156943bd99767f2e13 Mon Sep 17 00:00:00 2001 From: kris <> Date: Fri, 9 Jan 2009 20:16:08 +0000 Subject: [PATCH] add usage/help to resource command git-svn-id: file:///home/svn/framework3/trunk@6101 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/ui/console/command_dispatcher/core.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/msf/ui/console/command_dispatcher/core.rb b/lib/msf/ui/console/command_dispatcher/core.rb index 070b01a0e1..fe7bb44a18 100644 --- a/lib/msf/ui/console/command_dispatcher/core.rb +++ b/lib/msf/ui/console/command_dispatcher/core.rb @@ -107,6 +107,12 @@ class Core end def cmd_resource(*args) + if args.empty? + print( + "Usage: resource \n\n" + + "Run the commands stored in the supplied file.\n") + return false + end driver.load_resource(*args) end