jsonom 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jsonom/executioner.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1c97a47fb0263bb8430e8b6185a4902069cb618
|
4
|
+
data.tar.gz: 05d042f2cfbeeee489db4c078cc9df65771d73e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbe89216a28483a51cccdfd71edb049ea7b89a567665ef744b67295045b62b9ff6a6ff22c9ffe45ebca1bbe54e66c913711c9c97e746a1e0779c1ff5a93c5275
|
7
|
+
data.tar.gz: d2de243a8ffc92a8a73d1bdb78cbb3e115a7549d3e46ac5d4f31705a30a9aaa206ec295aaaafb4f537ad14c21e6ced5659c7751bb771ec3cba084a80826113f9
|
data/lib/jsonom/executioner.rb
CHANGED
@@ -12,6 +12,12 @@ module JSONom
|
|
12
12
|
new(*args).execute
|
13
13
|
end
|
14
14
|
|
15
|
+
def print_usage
|
16
|
+
puts <<-EOF
|
17
|
+
Usage: jsonom [filename] [propertyname]
|
18
|
+
EOF
|
19
|
+
end
|
20
|
+
|
15
21
|
def execute
|
16
22
|
opfile = nil
|
17
23
|
opprop = nil
|
@@ -23,6 +29,10 @@ module JSONom
|
|
23
29
|
opprop = @commands[index + 1]
|
24
30
|
elsif(command =~ /\Adebug\_/)
|
25
31
|
JSONParser.debug(opfile, opprop)
|
32
|
+
elsif(command == "help")
|
33
|
+
print_usage
|
34
|
+
|
35
|
+
exit 0
|
26
36
|
end
|
27
37
|
end
|
28
38
|
end
|