pptxt 0.3.4 → 0.3.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/pptxt +5 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7338fb4cc2ff3e921295b1825573b5f5fd04bc00
4
- data.tar.gz: 89392b9afe1582334f98b5691976fbe63ec1ee32
3
+ metadata.gz: ee0f088cbafc8acf18a4032651f4cc7cd9987678
4
+ data.tar.gz: 50eaaf5ff4322805f3abbcbe9c9ea08d4fcc8206
5
5
  SHA512:
6
- metadata.gz: d124796205b9f20793de66a01a38c7a024a4b332f339b83326d7c181daae6a6c602340ae460a3428ba077a86fb4ff7a0ba0d35d4556732df94486a028a28b2f8
7
- data.tar.gz: 704043a9e3335bfd351ad36fd2d2b732407dd2c569ea98c7e5b3b8e6177f985da7ba9cdefb45384f46d263046fb8211ef5144b52f93f5b5e8ce0089249cfcbbe
6
+ metadata.gz: efbe6d59deb623df42e9a05a4be5e1bbee8a4efedd6f127b0d82adb9238cedbc9ea61485f787ff83d547659870da5484fb1cfaddd3c415993dd58a744e05b07a
7
+ data.tar.gz: 2f4ca9367b9f0f36238f3dda4fcf6e82ffebf642200ff643be9d5c9ba24284467c91a52e2c0e49b0f1b2ee89c0ffc71da01815caa2c5eafc613cdf05f37147be
data/bin/pptxt CHANGED
@@ -13,6 +13,7 @@ class PPtxtExit
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)
@@ -84,6 +85,10 @@ def parse(args)
84
85
  puts e.message
85
86
  puts parser
86
87
  exit PPtxtExit::MISSING_ARGUMENT
88
+ rescue OptionParser::AmbiguousOption => e
89
+ puts e.message
90
+ puts parser
91
+ exit PPtxtExit::AMBIGUOUS_ARGUMENT
87
92
  end
88
93
 
89
94
  if (args.empty?)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pptxt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.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-23 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: minitest