pstream 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/pstream +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c901e9969b36359875a7b0dc64ea1ac51e1d5e3c
|
4
|
+
data.tar.gz: 5014a39b62d7ed307e403ea0fab05127a5711d2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5afc0e5b28202f406eff80925867ba629bba2ee81ebab39d1d406a7eb114fd15ab94094f8207bfd6905b7f3c124d3c86d283efd4a35e324778dfb264a476014
|
7
|
+
data.tar.gz: 7cb2801c693fac65a4c29af8145566f99fbbed1e7ed7a184f5078bcc69dc57f9c05290f00233b344c1e41a29ea1d2c8a7d1b6507bd8473015f2a86272dea34a1
|
data/bin/pstream
CHANGED
@@ -13,6 +13,7 @@ class PStreamExit
|
|
13
13
|
MISSING_ARGUMENT = 3
|
14
14
|
EXTRA_ARGUMENTS = 4
|
15
15
|
EXCEPTION = 5
|
16
|
+
AMBIGUOUS_ARGUMENT = 6
|
16
17
|
end
|
17
18
|
|
18
19
|
def parse(args)
|
@@ -78,6 +79,10 @@ def parse(args)
|
|
78
79
|
puts e.message
|
79
80
|
puts parser
|
80
81
|
exit PStreamExit::MISSING_ARGUMENT
|
82
|
+
rescue OptionParser::AmbiguousOption => e
|
83
|
+
puts e.message
|
84
|
+
puts parser
|
85
|
+
exit PStreamExit::AMBIGUOUS_ARGUMENT
|
81
86
|
end
|
82
87
|
|
83
88
|
if (args.length != 1)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pstream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Whittaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|