summaryrefslogtreecommitdiff
path: root/bin/leap
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-11-01 22:08:56 -0700
committerelijah <elijah@riseup.net>2012-11-01 22:08:56 -0700
commit83e929b84f6444c6fcf6857f13e05c619a8e5c0e (patch)
tree3d4c51ce94aa01864b752f66aa733197ff6161fc /bin/leap
parent60833da3e6d76e8cc2172ff58a79941de8b884dd (diff)
figured out a workaround to make --version work as expected
Diffstat (limited to 'bin/leap')
-rwxr-xr-xbin/leap9
1 files changed, 8 insertions, 1 deletions
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