Browse Source

updated help

Gildas 7 năm trước cách đây
mục cha
commit
10835dcbd6
1 tập tin đã thay đổi với 6 bổ sung6 xóa
  1. 6 6
      cli/single-file-cli.js

+ 6 - 6
cli/single-file-cli.js

@@ -57,9 +57,9 @@ const args = require("yargs")
 	})
 	.options("back-end", { description: "Back-end to use" })
 	.choices("back-end", ["jsdom", "puppeteer", "webdriver"])
-	.options("browser-headless", { description: "Run the browser in headless mode" })
+	.options("browser-headless", { description: "Run the browser in headless mode (puppeteer, webdriver)" })
 	.boolean("browser-headless")
-	.options("browser-executable-path", { description: "Path to chrome/chromium executable" })
+	.options("browser-executable-path", { description: "Path to chrome/chromium executable (puppeteer)" })
 	.string("browser-executable-path")
 	.options("compress-CSS", { description: "Compress CSS stylesheets" })
 	.boolean("compress-CSS")
@@ -67,9 +67,9 @@ const args = require("yargs")
 	.boolean("compress-HTML")
 	.options("group-duplicate-images", { description: "Group duplicate images into CSS custom properties" })
 	.boolean("compress-HTML")
-	.options("load-deferred-images", { description: "Load deferred (aka lazy-loaded) images" })
+	.options("load-deferred-images", { description: "Load deferred (aka lazy-loaded) images (puppeteer, webdriver)" })
 	.boolean("load-deferred-images")
-	.options("load-deferred-images-max-idle-time", { description: "Maximum delay of time to wait for deferred images" })
+	.options("load-deferred-images-max-idle-time", { description: "Maximum delay of time to wait for deferred images (webdriver)" })
 	.number("load-deferred-images")
 	.options("max-resource-size-enabled", { description: "Enable removal of embedded resources exceeding a given size" })
 	.boolean("max-resource-size-enabled")
@@ -81,7 +81,7 @@ const args = require("yargs")
 	.number("remove-unused-styles")
 	.options("remove-unused-fonts", { description: "Remove unused CSS font rules" })
 	.number("remove-unused-fonts")
-	.options("remove-frames", { description: "Remove frames" })
+	.options("remove-frames", { description: "Remove frames (puppeteer, webdriver)" })
 	.number("remove-frames")
 	.options("remove-imports", { description: "Remove HTML imports" })
 	.number("remove-imports")
@@ -97,7 +97,7 @@ const args = require("yargs")
 	.number("remove-alternative-medias")
 	.options("remove-alternative-images", { description: "Remove images for alternative sizes of screen" })
 	.number("remove-alternative-images")
-	.options("save-raw-page", { description: "Save the original page without interpreting it into the browser" })
+	.options("save-raw-page", { description: "Save the original page without interpreting it into the browser (puppeteer, webdriver)" })
 	.number("save-raw-page")
 	.argv;