thieve 0.1.4 → 0.1.5

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/thieve +5 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: faf4359edcee4807249b72be6391299220370f0e
4
- data.tar.gz: df6a52894a69d991b8332e8a95edd70541d422d9
3
+ metadata.gz: 03a137cffb00f83c73a64faba264971539e6c4f1
4
+ data.tar.gz: bb4a2ae2189cd1c177d645303fd8819050a86297
5
5
  SHA512:
6
- metadata.gz: 8d28e92e5c5a72bd317be94cca5cb1f0d939b4a5017d1b0fd23de24443ae3e0572198ef4a2c6c6a0a7a5c3d2ac90d1d7a41fdced72ed1a62be2351cce359ab68
7
- data.tar.gz: 7e7033bce540c7c85a3e53eaa111746e0df73597f37bcf4c6c200a23d4b598f5a8c187278a19b383f638cd7a4c8c88109a90b5cccfe6d52934de503aa6812ffb
6
+ metadata.gz: 025b38d6fe9423944f2e3e809d682c234425dd33aa91661ba4493112ec265ef45f4c03999430cff267a78d0bc44a0c149c14054a47d6901eb44a116d9c154d19
7
+ data.tar.gz: 6a890cf2e9de3a741900c8c22ee805ba70fb5e868dcc6277ad204272cd4f0111462723893f7a254608c03b5309d7b1f34e6738c9d4b1868525b57d812f0f31e0
data/bin/thieve CHANGED
@@ -13,6 +13,7 @@ class ThieveExit
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)
@@ -69,6 +70,10 @@ def parse(args)
69
70
  puts e.message
70
71
  puts parser
71
72
  exit ThieveExit::MISSING_ARGUMENT
73
+ rescue OptionParser::AmbiguousOption => e
74
+ puts e.message
75
+ puts parser
76
+ exit ThieveExit::AMBIGUOUS_ARGUMENT
72
77
  end
73
78
 
74
79
  if (args.length < 1)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thieve
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
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