exe/3scale in 3scale_toolbox-0.5.1 vs exe/3scale in 3scale_toolbox-0.6.0
- old
+ new
@@ -1,8 +1,15 @@
#!/usr/bin/env ruby
-require '3scale_toolbox'
-require '3scale_toolbox/cli'
+def suppress_warnings
+ original_verbosity = $VERBOSE
+ $VERBOSE = nil
+ yield
+ensure
+ $VERBOSE = original_verbosity
+end
+suppress_warnings { require '3scale_toolbox' }
+
args = ARGV.clone
-ThreeScaleToolbox::CLI.run args
+exit(ThreeScaleToolbox::CLI.run(args))