Skip to content
Snippets Groups Projects
Commit f95e08ef authored by elijah's avatar elijah
Browse files

[bug] always log the leap cli command arguments to the log file, if any. closes #8509

parent e207c628
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -79,6 +79,9 @@ module LeapCli::Commands ...@@ -79,6 +79,9 @@ module LeapCli::Commands
# run command # run command
begin begin
if ARGV.any?
LeapCli.log_raw(:log, nil, "COMMAND") { 'leap ' + ARGV.join(' ') }
end
exit_status = run(ARGV) exit_status = run(ARGV)
exit(LeapCli::Util.exit_status || exit_status) exit(LeapCli::Util.exit_status || exit_status)
rescue StandardError => exc rescue StandardError => exc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment