simple-cli 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b82f6957d9167a66b92ba38862c4e99dfec7a110
4
- data.tar.gz: 410a5e01f6c238aae72639196c31de3132ffce35
3
+ metadata.gz: f69bd1eb7c37888b7305f749554cf784ee83ba3c
4
+ data.tar.gz: 85cdbf85da1a114b64b47b6b8ad8c4c719cae359
5
5
  SHA512:
6
- metadata.gz: ffd51cc1a8c68b7f18f48d107cb0372bb9df5b8e4c22acefc7669e14f34ad90544c47e09a46cb067895cc0f064e8fcc37dd8f3b5766536d1cc15e8aa26699ebb
7
- data.tar.gz: d6786981885955ff79d78d6699e26995ffd8052d1e6a0d96198aee6f6528b31445fac3b83620088e9dde0b19f3c2168a1d2e495faa315c6dd2127c141a4aa087
6
+ metadata.gz: 1ea17fc3367c0d36e0891d42e10cb99e0acaa9fcd6a553d3a1fdc0fdacd0628b5579d9b358138ef3ca1151e6279a8b2bb02e1d096bbec54b9915d41b9f37d4cd
7
+ data.tar.gz: 47c65052b6418d966cec8047411b9dca9cd18efcc7d2a5b0d1d1726bbdcbfab0a9bd1171e0082ce1ff456744047fd05a2ec13698026c6bfd6c27acdf23421919
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple-cli (0.2.8)
4
+ simple-cli (0.2.9)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -84,9 +84,12 @@ class Simple::CLI::Runner
84
84
  def on_exception(e)
85
85
  raise(e) if Simple::CLI.logger.level == Logger::DEBUG
86
86
 
87
+ verbosity_hint = "Backtraces are currently silenced. Run with --verbose to see backtraces."
88
+
87
89
  case e
88
90
  when ArgumentError
89
91
  logger.error "#{e}\n\n"
92
+ logger.warn verbosity_hint
90
93
  if subcommand
91
94
  help_subcommand! subcommand
92
95
  else
@@ -96,6 +99,7 @@ class Simple::CLI::Runner
96
99
  msg = e.to_s
97
100
  msg += " (#{e.class.name})" unless $!.class.name == "RuntimeError"
98
101
  logger.error msg
102
+ logger.warn verbosity_hint
99
103
  exit 2
100
104
  end
101
105
  end
@@ -1,5 +1,5 @@
1
1
  module Simple
2
2
  module CLI
3
- VERSION = "0.2.8"
3
+ VERSION = "0.2.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - radiospiel
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-08-17 00:00:00.000000000 Z
12
+ date: 2018-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake