Просмотр исходного кода

add note for option --filename-max-length(see #810)

scruel 4 лет назад
Родитель
Сommit
27d9bbdc57
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      cli/args.js

+ 3 - 1
cli/args.js

@@ -54,6 +54,7 @@ const args = require("yargs")
 		"filename-template": "{page-title} ({date-iso} {time-locale}).html",
 		"filename-conflict-action": "uniquify",
 		"filename-replacement-character": "_",
+		"filename-max-length": 192,
 		"group-duplicate-images": true,
 		"http-header": [],
 		"include-infobar": false,
@@ -159,7 +160,8 @@ const args = require("yargs")
 	.string("filename-conflict-action")
 	.options("filename-replacement-character", { description: "The character used for replacing invalid characters in filenames" })
 	.string("filename-replacement-character")
-	.string("filename-replacement-character")
+	.options("filename-max-length", { description: "Specify the maximum length in bytes of the filename " })
+	.string("filename-max-length")
 	.options("group-duplicate-images", { description: "Group duplicate images into CSS custom properties" })
 	.boolean("group-duplicate-images")
 	.options("http-header", { description: "Extra HTTP header (puppeteer, jsdom)" })