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 16
16
# Setting Arguments
17
17
@@exec_opts = Rex ::Parser ::Arguments . new (
18
18
"-h" => [ false , "Help menu." ] ,
19
- "-cl " => [ true , "Commands to execute. The command must be enclosed in double quotes and separated by a comma." ] ,
19
+ "-c " => [ true , "Commands to execute. The command must be enclosed in double quotes and separated by a comma." ] ,
20
20
"-f" => [ true , "File where to saved output of command." ] ,
21
- "-rc " => [ true , "Text file with list of commands, one per line." ]
21
+ "-r " => [ true , "Text file with list of commands, one per line." ]
22
22
)
23
23
#Setting Argument variables
24
24
commands = [ ]
@@ -77,9 +77,9 @@ def usage
77
77
@@exec_opts . parse ( args ) { |opt , idx , val |
78
78
case opt
79
79
80
- when "-cl "
80
+ when "-c "
81
81
commands = val . split ( "," )
82
- when "-rc "
82
+ when "-r "
83
83
script = val
84
84
if not ::File . exist? ( script )
85
85
raise "Command List File does not exists!"
You can’t perform that action at this time.
0 commit comments