File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 17
17
# Setting Arguments
18
18
@@exec_opts = Rex ::Parser ::Arguments . new (
19
19
"-h" => [ false , "Help menu." ] ,
20
- "-sl " => [ false , "Hide commands output for work in background sessions" ] ,
21
- "-cl " => [ true , "Commands to execute. The command must be enclosed in double quotes and separated by a comma." ] ,
22
- "-rc " => [ true , "Text file with list of commands, one per line." ]
20
+ "-s " => [ false , "Hide commands output for work in background sessions" ] ,
21
+ "-c " => [ true , "Commands to execute. The command must be enclosed in double quotes and separated by a comma." ] ,
22
+ "-r " => [ true , "Text file with list of commands, one per line." ]
23
23
)
24
24
25
25
commands = nil
@@ -36,9 +36,9 @@ def usage
36
36
@@exec_opts . parse ( args ) { |opt , idx , val |
37
37
case opt
38
38
39
- when "-cl "
39
+ when "-c "
40
40
commands = val . split ( "," )
41
- when "-rc "
41
+ when "-r "
42
42
script = val
43
43
if not ::File . exist? ( script )
44
44
raise "Command List File does not exists!"
@@ -51,7 +51,7 @@ def usage
51
51
52
52
when "-h"
53
53
help = true
54
- when "-sl "
54
+ when "-s "
55
55
silence = true
56
56
end
57
57
}
You can’t perform that action at this time.
0 commit comments