Explorar o código

Modify the method of writing typos in the SingleFile file

Former-commit-id: b743d61182cce5f300eccb9667132aa51c5e54f1
geekPrince %!s(int64=6) %!d(string=hai) anos
pai
achega
58cbd91081
Modificáronse 1 ficheiros con 11 adicións e 11 borrados
  1. 11 11
      cli/single-file

+ 11 - 11
cli/single-file

@@ -104,27 +104,27 @@ const args = require("yargs")
 	.options("remove-frames", { description: "Remove frames (puppeteer, webdriver-gecko, webdriver-chromium)" })
 	.boolean("remove-frames")
 	.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" })
-	.number("remove-unused-styles")
+	.boolean("remove-unused-styles")
 	.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" })
-	.number("remove-imports")
+	.boolean("remove-imports")
 	.options("remove-scripts", { description: "Remove JavaScript scripts" })
-	.number("remove-scripts")
+	.boolean("remove-scripts")
 	.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" })
-	.number("remove-video-src")
+	.boolean("remove-video-src")
 	.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" })
-	.number("remove-alternative-medias")
+	.boolean("remove-alternative-medias")
 	.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)" })
-	.number("save-raw-page")
+	.boolean("save-raw-page")
 	.options("web-driver-executable-path", { description: "Path to Selenium WebDriver executable (webdriver-gecko, webdriver-chromium)" })
 	.string("web-driver-executable-path")
 	.argv;