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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/simple/cli.rb +9 -4
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7c76281ec1c86003ccc81f754067a1ab6c1270c1252b49be9b2e77b5003b4f0
4
- data.tar.gz: 13ee4536fab8272fdc833ea585ee324ec6fc7454939aef9fe4c762c168087001
3
+ metadata.gz: 57be6c0879e7d923ece91db99463f558eea2618264a65fb9d75a26a402886b5d
4
+ data.tar.gz: 5153c943beb52a0cbd0057e9be0afae4c8195ac83ef0e5697b75403c5e252503
5
5
  SHA512:
6
- metadata.gz: 74f848f2d6fe96a2bb63ccae8fdd866a37d403162ecd7a2c595c87b3e6f3c7b2999f12a932892c658e9f754f7fc1918ca1d36889ff022162a10ac35948313624
7
- data.tar.gz: f131ad6dfc56139703414dcb0d991425db604ede1efe4e5e12dd558f02a724603e46bddac93e79dcf3a6879d9cec5d08ec87b9061fbe4e2fd0ceabe29c8a9d49
6
+ metadata.gz: 1caf4c5fb6a4ca094b48a3449c5362a85107f2983889d1f5a9c36c758c678e39c08e64fb20ebcee5bff95d0afefdee9c642f9e4dc7855aef3d7a9cb52b7312fc
7
+ data.tar.gz: ccff67f4f0b1ff39284ca6e04f6045fbe7d6357178d21b2f836ed59257e2ace83e4dcb48f50c8105a0e06c44e5fbc24f6e0e3ae00cd76444e54ddb081641b302
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
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
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.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - radiospiel