small fix
git-svn-id: file:///home/svn/framework3/trunk@10340 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
99e2218d13
commit
1cb4d17df7
|
@ -9,7 +9,7 @@ require 'fileutils'
|
||||||
pid = nil
|
pid = nil
|
||||||
name = nil
|
name = nil
|
||||||
toggle = nil
|
toggle = nil
|
||||||
resource = ""
|
resource = nil
|
||||||
opts = Rex::Parser::Arguments.new(
|
opts = Rex::Parser::Arguments.new(
|
||||||
"-h" => [ false, "Help menu." ],
|
"-h" => [ false, "Help menu." ],
|
||||||
"-p" => [ true, "PID of process to dump."],
|
"-p" => [ true, "PID of process to dump."],
|
||||||
|
@ -35,6 +35,7 @@ opts.parse(args) { |opt, idx, val|
|
||||||
toggle = true
|
toggle = true
|
||||||
when "-r"
|
when "-r"
|
||||||
list = val
|
list = val
|
||||||
|
resource = ""
|
||||||
if not ::File.exists?(list)
|
if not ::File.exists?(list)
|
||||||
raise "Command List File does not exists!"
|
raise "Command List File does not exists!"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue