diff --git a/changelog.md b/changelog.md index c2b25bdca..97605aa7e 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 * `FIX` incorrect error message for `--doc_update`. * `FIX` reimplement section `luals.config` in file doc.json * `FIX` incorrect file names in file doc.json diff --git a/script/cli/doc/init.lua b/script/cli/doc/init.lua index 0db36771c..144c9911c 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