]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
include leap command invocation in the log file, if any.
authorelijah <elijah@riseup.net>
Wed, 27 Feb 2013 00:41:24 +0000 (16:41 -0800)
committerelijah <elijah@riseup.net>
Wed, 27 Feb 2013 00:41:24 +0000 (16:41 -0800)
bin/leap
lib/leap_cli/commands/pre.rb

index 0339d5414aa6bee79194bcb6666449b4ff5faeca..d711dfedd111e8d7b9e228ed23fa30d498e99b5c 100755 (executable)
--- 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
index f10eb684a078b3fe3ca7adad034283342c0fdc18..03355bb11a05c28ce3817f3790466261823aad30 100644 (file)
@@ -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