From db0633e869b195ab19349d06d4452def14b5a7be Mon Sep 17 00:00:00 2001 From: Andreas Date: Wed, 12 Feb 2025 17:19:37 +0100 Subject: [PATCH 1/2] fix: default path for --doc_out_path is the current directory Back then the default path of doc.json was LOGPATH. However the default path got lost after a refactoring in #2821. This commit reimplements the default path, but changes the default to the current directory. --- changelog.md | 1 + script/cli/doc/init.lua | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/changelog.md b/changelog.md index 454301b2e..49e4450fb 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,7 @@ ## Unreleased * `FIX` incorrect argument skip pattern for `--check_out_path=`, which incorrectly skips the next argument +* `CHG` default path for `--doc_out_path` is the current directory ## 3.13.6 `2025-2-6` diff --git a/script/cli/doc/init.lua b/script/cli/doc/init.lua index 3492b3d9c..6d474da81 100644 --- a/script/cli/doc/init.lua +++ b/script/cli/doc/init.lua @@ -242,6 +242,10 @@ function doc.runCLI() end) io.write('\x0D') + if not DOC_OUT_PATH then + DOC_OUT_PATH = fs.current_path():string() + end + local ok, outPaths, err = dirty_export.serializeAndExport(docs, DOC_OUT_PATH) print(lang.script('CLI_DOC_DONE')) for i, path in ipairs(outPaths) do From a9db22dfe0eb6c830b6b8b8a28cf3953fabab17b Mon Sep 17 00:00:00 2001 From: Andreas Matthias Date: Fri, 14 Feb 2025 16:56:46 +0100 Subject: [PATCH 2/2] fix: mistake in latest merge --- changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 7272c46b7..e3b304470 100644 --- a/changelog.md +++ b/changelog.md @@ -2,7 +2,7 @@ ## Unreleased -* `FIX` incorrect argument skip pattern for `--check_out_path=`, which incorrectly skips the next argumen +* `FIX` incorrect argument skip pattern for `--check_out_path=`, which incorrectly skips the next argument * `CHG` default path for `--doc_out_path` is the current directory * `FIX` remove extra `./` path prefix in the check report when using `--check=.`