|
@@ -104,27 +104,27 @@ const args = require("yargs")
|
|
|
.options("remove-frames", { description: "Remove frames (puppeteer, 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" })
|
|
|
- .number("remove-hidden-elements")
|
|
|
|
|
|
|
+ .boolean("remove-hidden-elements")
|
|
|
.options("remove-unused-styles", { description: "Remove unused CSS rules and unneeded declarations" })
|
|
.options("remove-unused-styles", { description: "Remove unused CSS rules and unneeded declarations" })
|
|
|
- .number("remove-unused-styles")
|
|
|
|
|
|
|
+ .boolean("remove-unused-styles")
|
|
|
.options("remove-unused-fonts", { description: "Remove unused CSS font rules" })
|
|
.options("remove-unused-fonts", { description: "Remove unused CSS font rules" })
|
|
|
- .number("remove-unused-fonts")
|
|
|
|
|
|
|
+ .boolean("remove-unused-fonts")
|
|
|
.options("remove-imports", { description: "Remove HTML imports" })
|
|
.options("remove-imports", { description: "Remove HTML imports" })
|
|
|
- .number("remove-imports")
|
|
|
|
|
|
|
+ .boolean("remove-imports")
|
|
|
.options("remove-scripts", { description: "Remove JavaScript scripts" })
|
|
.options("remove-scripts", { description: "Remove JavaScript scripts" })
|
|
|
- .number("remove-scripts")
|
|
|
|
|
|
|
+ .boolean("remove-scripts")
|
|
|
.options("remove-audio-src", { description: "Remove source of audio elements" })
|
|
.options("remove-audio-src", { description: "Remove source of audio elements" })
|
|
|
- .number("remove-audio-src")
|
|
|
|
|
|
|
+ .boolean("remove-audio-src")
|
|
|
.options("remove-video-src", { description: "Remove source of video elements" })
|
|
.options("remove-video-src", { description: "Remove source of video elements" })
|
|
|
- .number("remove-video-src")
|
|
|
|
|
|
|
+ .boolean("remove-video-src")
|
|
|
.options("remove-alternative-fonts", { description: "Remove alternative fonts to the ones displayed" })
|
|
.options("remove-alternative-fonts", { description: "Remove alternative fonts to the ones displayed" })
|
|
|
- .number("remove-alternative-fonts")
|
|
|
|
|
|
|
+ .boolean("remove-alternative-fonts")
|
|
|
.options("remove-alternative-medias", { description: "Remove alternative CSS stylesheets" })
|
|
.options("remove-alternative-medias", { description: "Remove alternative CSS stylesheets" })
|
|
|
- .number("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" })
|
|
|
- .number("remove-alternative-images")
|
|
|
|
|
|
|
+ .boolean("remove-alternative-images")
|
|
|
.options("save-raw-page", { description: "Save the original page without interpreting it into the browser (puppeteer, webdriver-gecko, webdriver-chromium)" })
|
|
.options("save-raw-page", { description: "Save the original page without interpreting it into the browser (puppeteer, webdriver-gecko, webdriver-chromium)" })
|
|
|
- .number("save-raw-page")
|
|
|
|
|
|
|
+ .boolean("save-raw-page")
|
|
|
.options("web-driver-executable-path", { description: "Path to Selenium WebDriver executable (webdriver-gecko, webdriver-chromium)" })
|
|
.options("web-driver-executable-path", { description: "Path to Selenium WebDriver executable (webdriver-gecko, webdriver-chromium)" })
|
|
|
.string("web-driver-executable-path")
|
|
.string("web-driver-executable-path")
|
|
|
.argv;
|
|
.argv;
|