From: elijah Date: Wed, 27 Feb 2013 00:41:24 +0000 (-0800) Subject: include leap command invocation in the log file, if any. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b415db1a6bfd08856d299e527bf6b16e3fd220b2;p=leap%2Fleap_cli.git include leap command invocation in the log file, if any. --- diff --git a/bin/leap b/bin/leap index 0339d54..d711dfe 100755 --- a/bin/leap +++ b/bin/leap @@ -79,5 +79,6 @@ module LeapCli::Commands # load commands and run commands_from('leap_cli/commands') + ORIGINAL_ARGV = ARGV.dup exit run(ARGV) end diff --git a/lib/leap_cli/commands/pre.rb b/lib/leap_cli/commands/pre.rb index f10eb68..03355bb 100644 --- a/lib/leap_cli/commands/pre.rb +++ b/lib/leap_cli/commands/pre.rb @@ -51,6 +51,7 @@ module LeapCli # set log file # LeapCli.log_file = global[:log] || LeapCli.leapfile.log + LeapCli::Util.log_raw(:log) { $0 + ' ' + ORIGINAL_ARGV.join(' ')} # # load all the nodes everything