fix: use --lang-out instead of -l for babeldoc (ambiguous option)
This commit is contained in:
parent
25e12e8a07
commit
f083a14c78
1 changed files with 4 additions and 4 deletions
|
|
@ -209,9 +209,9 @@ function runBabelDoc(
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
// babeldoc CLI 參數:
|
// babeldoc CLI 參數:
|
||||||
// -i <input>: 輸入 PDF
|
// -i <input>: 輸入 PDF(縮寫不衝突,可以使用)
|
||||||
// -o <output>: 輸出檔案
|
// -o <output>: 輸出檔案(縮寫不衝突,可以使用)
|
||||||
// -l <lang>: 目標語言
|
// --lang-out <lang>: 目標語言(注意:-l 是模糊的,會匹配 -li 和 -lo)
|
||||||
// --output-format <format>: 輸出格式(pdf/md/html)
|
// --output-format <format>: 輸出格式(pdf/md/html)
|
||||||
// --service <service>: 翻譯服務(預設 google)
|
// --service <service>: 翻譯服務(預設 google)
|
||||||
|
|
||||||
|
|
@ -223,7 +223,7 @@ function runBabelDoc(
|
||||||
inputPath,
|
inputPath,
|
||||||
"-o",
|
"-o",
|
||||||
outputPath,
|
outputPath,
|
||||||
"-l",
|
"--lang-out",
|
||||||
babelLang,
|
babelLang,
|
||||||
"--output-format",
|
"--output-format",
|
||||||
outputFormat,
|
outputFormat,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue