From 885e44ec43c17a595fff8d10f24d0724fb2c37ce Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 3 Feb 2015 10:14:14 -0800 Subject: fixed missing ORIGINAL_ARGV when running with --version --- bin/leap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/leap') diff --git a/bin/leap b/bin/leap index 59e4ee8..dbdd312 100755 --- a/bin/leap +++ b/bin/leap @@ -11,6 +11,7 @@ else end LEAP_CLI_BASE_DIR = File.expand_path('..', File.dirname(File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__)) +ORIGINAL_ARGV = ARGV.dup begin require 'leap_cli' @@ -100,7 +101,6 @@ module LeapCli::Commands commands_from('leap_cli/commands') # run command - ORIGINAL_ARGV = ARGV.dup begin exit_status = run(ARGV) exit(LeapCli::Util.exit_status || exit_status) -- cgit v1.2.3