From 83e929b84f6444c6fcf6857f13e05c619a8e5c0e Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 1 Nov 2012 22:08:56 -0700 Subject: figured out a workaround to make --version work as expected --- bin/leap | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/leap b/bin/leap index 582d313..45f64fb 100755 --- a/bin/leap +++ b/bin/leap @@ -64,7 +64,14 @@ module LeapCli::Commands # program_desc LeapCli::SUMMARY program_long_desc LeapCli::DESCRIPTION - version LeapCli::VERSION + + # + # handle --version ourselves + # + if ARGV.grep(/--version/).any? + puts "leap #{LeapCli::VERSION}, ruby #{RUBY_VERSION}" + exit(0) + end # # load commands and run -- cgit v1.2.3