|
@@ -74,28 +74,28 @@ module.exports = require("yargs")
|
|
|
"url-rewrite-rules": []
|
|
"url-rewrite-rules": []
|
|
|
})
|
|
})
|
|
|
.options("back-end", { description: "Back-end to use" })
|
|
.options("back-end", { description: "Back-end to use" })
|
|
|
- .choices("back-end", ["jsdom", "puppeteer", "webdriver-chromium", "webdriver-gecko", "puppeteer-firefox"])
|
|
|
|
|
- .options("browser-headless", { description: "Run the browser in headless mode (puppeteer, puppeteer-firefox, webdriver-gecko, webdriver-chromium)" })
|
|
|
|
|
|
|
+ .choices("back-end", ["jsdom", "puppeteer", "webdriver-chromium", "webdriver-gecko"])
|
|
|
|
|
+ .options("browser-headless", { description: "Run the browser in headless mode (puppeteer, webdriver-gecko, webdriver-chromium)" })
|
|
|
.boolean("browser-headless")
|
|
.boolean("browser-headless")
|
|
|
- .options("browser-executable-path", { description: "Path to chrome/chromium executable (puppeteer, puppeteer-firefox, webdriver-gecko, webdriver-chromium)" })
|
|
|
|
|
|
|
+ .options("browser-executable-path", { description: "Path to chrome/chromium executable (puppeteer, webdriver-gecko, webdriver-chromium)" })
|
|
|
.string("browser-executable-path")
|
|
.string("browser-executable-path")
|
|
|
.options("browser-width", { description: "Width of the browser viewport in pixels" })
|
|
.options("browser-width", { description: "Width of the browser viewport in pixels" })
|
|
|
.number("browser-width")
|
|
.number("browser-width")
|
|
|
.options("browser-height", { description: "Height of the browser viewport in pixels" })
|
|
.options("browser-height", { description: "Height of the browser viewport in pixels" })
|
|
|
.number("browser-height")
|
|
.number("browser-height")
|
|
|
- .options("browser-load-max-time", { description: "Maximum delay of time to wait for page loading in ms (puppeteer, puppeteer-firefox, webdriver-gecko, webdriver-chromium)" })
|
|
|
|
|
|
|
+ .options("browser-load-max-time", { description: "Maximum delay of time to wait for page loading in ms (puppeteer, webdriver-gecko, webdriver-chromium)" })
|
|
|
.number("browser-load-max-time")
|
|
.number("browser-load-max-time")
|
|
|
- .options("browser-wait-until", { description: "When to consider the page is loaded (puppeteer, puppeteer-firefox, webdriver-gecko, webdriver-chromium)" })
|
|
|
|
|
|
|
+ .options("browser-wait-until", { description: "When to consider the page is loaded (puppeteer, webdriver-gecko, webdriver-chromium)" })
|
|
|
.choices("browser-wait-until", ["networkidle0", "networkidle2", "load", "domcontentloaded"])
|
|
.choices("browser-wait-until", ["networkidle0", "networkidle2", "load", "domcontentloaded"])
|
|
|
.options("browser-wait-until-fallback", { description: "Retry with the next value of --browser-wait-until when a timeout error is thrown" })
|
|
.options("browser-wait-until-fallback", { description: "Retry with the next value of --browser-wait-until when a timeout error is thrown" })
|
|
|
.boolean("browser-wait-until-fallback")
|
|
.boolean("browser-wait-until-fallback")
|
|
|
- .options("browser-debug", { description: "Enable debug mode (puppeteer, puppeteer-firefox, webdriver-gecko, webdriver-chromium)" })
|
|
|
|
|
|
|
+ .options("browser-debug", { description: "Enable debug mode (puppeteer, webdriver-gecko, webdriver-chromium)" })
|
|
|
.boolean("browser-debug")
|
|
.boolean("browser-debug")
|
|
|
.options("browser-extensions", { description: "List of extension paths separated by a space and relative to the 'cli' folder (webdriver-gecko, webdriver-chromium)" })
|
|
.options("browser-extensions", { description: "List of extension paths separated by a space and relative to the 'cli' folder (webdriver-gecko, webdriver-chromium)" })
|
|
|
.array("browser-extensions")
|
|
.array("browser-extensions")
|
|
|
.options("browser-scripts", { description: "List of script paths separated by a space and relative to the 'cli' folder. They will be executed in all the frames." })
|
|
.options("browser-scripts", { description: "List of script paths separated by a space and relative to the 'cli' folder. They will be executed in all the frames." })
|
|
|
.array("browser-scripts")
|
|
.array("browser-scripts")
|
|
|
- .options("browser-args", { description: "Arguments provided as a JSON array and passed to the browser (puppeteer, puppeteer-firefox, webdriver-gecko, webdriver-chromium)" })
|
|
|
|
|
|
|
+ .options("browser-args", { description: "Arguments provided as a JSON array and passed to the browser (puppeteer, webdriver-gecko, webdriver-chromium)" })
|
|
|
.string("browser-args")
|
|
.string("browser-args")
|
|
|
.options("compress-CSS", { description: "Compress CSS stylesheets" })
|
|
.options("compress-CSS", { description: "Compress CSS stylesheets" })
|
|
|
.boolean("compress-CSS")
|
|
.boolean("compress-CSS")
|
|
@@ -120,9 +120,9 @@ module.exports = require("yargs")
|
|
|
.boolean("include-BOM")
|
|
.boolean("include-BOM")
|
|
|
.options("include-infobar", { description: "Include the infobar" })
|
|
.options("include-infobar", { description: "Include the infobar" })
|
|
|
.boolean("include-infobar")
|
|
.boolean("include-infobar")
|
|
|
- .options("load-deferred-images", { description: "Load deferred (a.k.a. lazy-loaded) images (puppeteer, puppeteer-firefox, webdriver-gecko, webdriver-chromium)" })
|
|
|
|
|
|
|
+ .options("load-deferred-images", { description: "Load deferred (a.k.a. lazy-loaded) images (puppeteer, webdriver-gecko, webdriver-chromium)" })
|
|
|
.boolean("load-deferred-images")
|
|
.boolean("load-deferred-images")
|
|
|
- .options("load-deferred-images-max-idle-time", { description: "Maximum delay of time to wait for deferred images in ms (puppeteer, puppeteer-firefox, webdriver-gecko, webdriver-chromium)" })
|
|
|
|
|
|
|
+ .options("load-deferred-images-max-idle-time", { description: "Maximum delay of time to wait for deferred images in ms (puppeteer, webdriver-gecko, webdriver-chromium)" })
|
|
|
.number("load-deferred-images-max-idle-time")
|
|
.number("load-deferred-images-max-idle-time")
|
|
|
.options("max-parallel-workers", { description: "Maximum number of browsers launched in parallel when processing a list of URLs (cf --urls-file)" })
|
|
.options("max-parallel-workers", { description: "Maximum number of browsers launched in parallel when processing a list of URLs (cf --urls-file)" })
|
|
|
.number("max-parallel-workers")
|
|
.number("max-parallel-workers")
|
|
@@ -130,7 +130,7 @@ module.exports = require("yargs")
|
|
|
.boolean("max-resource-size-enabled")
|
|
.boolean("max-resource-size-enabled")
|
|
|
.options("max-resource-size", { description: "Maximum size of embedded resources in MB (i.e. images, stylesheets, scripts and iframes)" })
|
|
.options("max-resource-size", { description: "Maximum size of embedded resources in MB (i.e. images, stylesheets, scripts and iframes)" })
|
|
|
.number("max-resource-size")
|
|
.number("max-resource-size")
|
|
|
- .options("remove-frames", { description: "Remove frames (puppeteer, puppeteer-firefox, webdriver-gecko, webdriver-chromium)" })
|
|
|
|
|
|
|
+ .options("remove-frames", { description: "Remove frames (puppeteer, webdriver-gecko, webdriver-chromium)" })
|
|
|
.boolean("remove-frames")
|
|
.boolean("remove-frames")
|
|
|
.options("remove-hidden-elements", { description: "Remove HTML elements which are not displayed" })
|
|
.options("remove-hidden-elements", { description: "Remove HTML elements which are not displayed" })
|
|
|
.boolean("remove-hidden-elements")
|
|
.boolean("remove-hidden-elements")
|
|
@@ -152,7 +152,7 @@ module.exports = require("yargs")
|
|
|
.boolean("remove-alternative-medias")
|
|
.boolean("remove-alternative-medias")
|
|
|
.options("remove-alternative-images", { description: "Remove images for alternative sizes of screen" })
|
|
.options("remove-alternative-images", { description: "Remove images for alternative sizes of screen" })
|
|
|
.boolean("remove-alternative-images")
|
|
.boolean("remove-alternative-images")
|
|
|
- .options("save-raw-page", { description: "Save the original page without interpreting it into the browser (puppeteer, puppeteer-firefox, webdriver-gecko, webdriver-chromium)" })
|
|
|
|
|
|
|
+ .options("save-raw-page", { description: "Save the original page without interpreting it into the browser (puppeteer, webdriver-gecko, webdriver-chromium)" })
|
|
|
.boolean("save-raw-page")
|
|
.boolean("save-raw-page")
|
|
|
.options("url-rewrite-rules", { description: "List of rewrite rules used to rewrite URLs" })
|
|
.options("url-rewrite-rules", { description: "List of rewrite rules used to rewrite URLs" })
|
|
|
.array("url-rewrite-rules")
|
|
.array("url-rewrite-rules")
|