simple-cli 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/simple/cli.rb +9 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57be6c0879e7d923ece91db99463f558eea2618264a65fb9d75a26a402886b5d
|
4
|
+
data.tar.gz: 5153c943beb52a0cbd0057e9be0afae4c8195ac83ef0e5697b75403c5e252503
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1caf4c5fb6a4ca094b48a3449c5362a85107f2983889d1f5a9c36c758c678e39c08e64fb20ebcee5bff95d0afefdee9c642f9e4dc7855aef3d7a9cb52b7312fc
|
7
|
+
data.tar.gz: ccff67f4f0b1ff39284ca6e04f6045fbe7d6357178d21b2f836ed59257e2ace83e4dcb48f50c8105a0e06c44e5fbc24f6e0e3ae00cd76444e54ddb081641b302
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.2
|
data/lib/simple/cli.rb
CHANGED
@@ -93,11 +93,16 @@ module Simple::CLI
|
|
93
93
|
You probably run the command with invalid arguments; to learn more run
|
94
94
|
|
95
95
|
#{$0} help #{options.command}
|
96
|
-
|
97
|
-
Error location:
|
98
|
-
|
99
|
-
- #{$!.backtrace[0,5].join("\n- ")}
|
100
96
|
MSG
|
97
|
+
|
98
|
+
if options.verbose?
|
99
|
+
STDERR.puts <<~MSG
|
100
|
+
|
101
|
+
Error location:
|
102
|
+
|
103
|
+
- #{$!.backtrace[0,5].join("\n- ")}
|
104
|
+
MSG
|
105
|
+
end
|
101
106
|
rescue StandardError => e
|
102
107
|
on_exception(e)
|
103
108
|
exit 3
|