Skip to content

Commit

Permalink
Merge pull request #3076 from AndreasMatthias/fix_doc_defaultpath
Browse files Browse the repository at this point in the history
fix: default path for --doc_out_path is the current directory
  • Loading branch information
sumneko authored Feb 18, 2025
2 parents 5657839 + ee654a2 commit 1573c28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased
<!-- Add all new changes here. They will be moved under a version at release -->
* `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
Expand Down
4 changes: 4 additions & 0 deletions script/cli/doc/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1573c28

Please sign in to comment.