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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/simple/cli/runner.rb +4 -0
- data/lib/simple/cli/version.rb +1 -1
- 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: f69bd1eb7c37888b7305f749554cf784ee83ba3c
|
4
|
+
data.tar.gz: 85cdbf85da1a114b64b47b6b8ad8c4c719cae359
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ea17fc3367c0d36e0891d42e10cb99e0acaa9fcd6a553d3a1fdc0fdacd0628b5579d9b358138ef3ca1151e6279a8b2bb02e1d096bbec54b9915d41b9f37d4cd
|
7
|
+
data.tar.gz: 47c65052b6418d966cec8047411b9dca9cd18efcc7d2a5b0d1d1726bbdcbfab0a9bd1171e0082ce1ff456744047fd05a2ec13698026c6bfd6c27acdf23421919
|
data/Gemfile.lock
CHANGED
data/lib/simple/cli/runner.rb
CHANGED
@@ -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
|
data/lib/simple/cli/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2018-08-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|