mtik_directory_2_address_list 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,7 @@ class Args
|
|
20
20
|
|
21
21
|
def parse
|
22
22
|
opts = OptionParser.new
|
23
|
-
opts.banner = 'Usage: <host> <username> <password>
|
23
|
+
opts.banner = 'Usage: <dir> <host> <username> <password> [options]'
|
24
24
|
|
25
25
|
opts.separator ''
|
26
26
|
opts.separator 'Options:'
|
@@ -50,11 +50,11 @@ class Args
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def directory
|
53
|
-
ARGV[
|
53
|
+
ARGV[0]
|
54
54
|
end
|
55
55
|
|
56
56
|
def mikrotik
|
57
|
-
Hash[[:host, :user, :pass].zip(ARGV[
|
57
|
+
Hash[[:host, :user, :pass].zip(ARGV[1, 3])]
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|