File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 15
15
16
16
@@exec_opts = Rex ::Parser ::Arguments . new (
17
17
"-h" => [ false , "Help menu." ] ,
18
- "-cl " => [ true , "Collection of scripts to execute. Each script command must be enclosed in double quotes and separated by a semicolon." ] ,
19
- "-rc " => [ true , "Text file with list of commands, one per line." ]
18
+ "-c " => [ true , "Collection of scripts to execute. Each script command must be enclosed in double quotes and separated by a semicolon." ] ,
19
+ "-r " => [ true , "Text file with list of commands, one per line." ]
20
20
)
21
21
#Setting Argument variables
22
22
commands = ""
@@ -53,9 +53,9 @@ def usage
53
53
@@exec_opts . parse ( args ) do |opt , idx , val |
54
54
case opt
55
55
56
- when "-cl "
56
+ when "-c "
57
57
commands = val . gsub ( /;/ , "\n " )
58
- when "-rc "
58
+ when "-r "
59
59
script = val
60
60
if not ::File . exist? ( script )
61
61
raise "Script List File does not exists!"
You can’t perform that action at this time.
0 commit comments