pstream 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/pstream +5 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 271c9e33228e5be4164a9b78b46676b9948b82a1
4
- data.tar.gz: 23c32a566f9879032c328e9de7bf5f785fed4881
3
+ metadata.gz: c901e9969b36359875a7b0dc64ea1ac51e1d5e3c
4
+ data.tar.gz: 5014a39b62d7ed307e403ea0fab05127a5711d2b
5
5
  SHA512:
6
- metadata.gz: 0991edbe02210372b78cf9b83bb351ca351ac8c3b0394e02b522acbba88397dd5cf2886100813f7450452af2b97e483ebaae6f0af7f5ef237162deba29129f40
7
- data.tar.gz: 355343ff62153da914b6fcff19c157fb595250b46cc243062f2bff12b3177bbd25df4388bed3e73289d1e4462a9be97558868de92179df881f8767ca8d40a1cc
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.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-22 00:00:00.000000000 Z
11
+ date: 2016-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake