Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1573c28

Browse files
authored
Merge pull request #3076 from AndreasMatthias/fix_doc_defaultpath
fix: default path for --doc_out_path is the current directory
2 parents 5657839 + ee654a2 commit 1573c28

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

‎changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
55
* `FIX` incorrect argument skip pattern for `--check_out_path=`, which incorrectly skips the next argument
6+
* `CHG` default path for `--doc_out_path` is the current directory
67
* `FIX` incorrect error message for `--doc_update`.
78
* `FIX` reimplement section `luals.config` in file doc.json
89
* `FIX` incorrect file names in file doc.json

‎script/cli/doc/init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ function doc.runCLI()
242242
end)
243243
io.write('\x0D')
244244

245+
if not DOC_OUT_PATH then
246+
DOC_OUT_PATH = fs.current_path():string()
247+
end
248+
245249
local ok, outPaths, err = dirty_export.serializeAndExport(docs, DOC_OUT_PATH)
246250
print(lang.script('CLI_DOC_DONE'))
247251
for i, path in ipairs(outPaths) do

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /