summaryrefslogtreecommitdiff
path: root/bin/leap
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-02-03 10:14:14 -0800
committerelijah <elijah@riseup.net>2015-02-03 10:14:14 -0800
commit885e44ec43c17a595fff8d10f24d0724fb2c37ce (patch)
tree43bde8112de567cfa75f85401be4f4a79bd827e7 /bin/leap
parentc7d5c2798f47ed0a06f0ef57908c556580f72f9c (diff)
fixed missing ORIGINAL_ARGV when running with --version
Diffstat (limited to 'bin/leap')
-rwxr-xr-xbin/leap2
1 files changed, 1 insertions, 1 deletions
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)