diff options
| author | elijah <elijah@riseup.net> | 2012-11-01 22:08:56 -0700 | 
|---|---|---|
| committer | elijah <elijah@riseup.net> | 2012-11-01 22:08:56 -0700 | 
| commit | 83e929b84f6444c6fcf6857f13e05c619a8e5c0e (patch) | |
| tree | 3d4c51ce94aa01864b752f66aa733197ff6161fc /bin/leap | |
| parent | 60833da3e6d76e8cc2172ff58a79941de8b884dd (diff) | |
figured out a workaround to make --version work as expected
Diffstat (limited to 'bin/leap')
| -rwxr-xr-x | bin/leap | 9 | 
1 files changed, 8 insertions, 1 deletions
| @@ -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 | 
