summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-10-04 16:04:51 -0700
committerelijah <elijah@riseup.net>2016-10-04 16:04:51 -0700
commitf95e08ef7d8defbde4a19e138b1ac4ebc9677669 (patch)
treeaf5c969c905a8d2a95f2b2aa7c4dd6f4b8763126
parente207c628f9aeadf1c93b6756f00bb97789dc7673 (diff)
[bug] always log the leap cli command arguments to the log file, if any. closes #8509develop
-rwxr-xr-xbin/leap3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/leap b/bin/leap
index b2eca90..55ffb41 100755
--- a/bin/leap
+++ b/bin/leap
@@ -79,6 +79,9 @@ module LeapCli::Commands
# run command
begin
+ if ARGV.any?
+ LeapCli.log_raw(:log, nil, "COMMAND") { 'leap ' + ARGV.join(' ') }
+ end
exit_status = run(ARGV)
exit(LeapCli::Util.exit_status || exit_status)
rescue StandardError => exc