From 00ad081732cfd1dc7e340597f2000de751960471 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Tue, 10 Oct 2023 13:23:29 -0700 Subject: Add `--check_out_path` CLI argument This allows customizing where the diagnostic JSON file is saved. --- script/cli/check.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'script/cli') diff --git a/script/cli/check.lua b/script/cli/check.lua index 323ea74b..4295fa06 100644 --- a/script/cli/check.lua +++ b/script/cli/check.lua @@ -99,7 +99,10 @@ end if count == 0 then print(lang.script('CLI_CHECK_SUCCESS')) else - local outpath = LOGPATH .. '/check.json' + local outpath = CHECK_OUT_PATH + if outpath == nil then + outpath = LOGPATH .. '/check.json' + end util.saveFile(outpath, jsonb.beautify(results)) print(lang.script('CLI_CHECK_RESULTS', count, outpath)) -- cgit v1.2.3