Browse Source

fiexed option type

Gildas 7 years ago
parent
commit
a0adb261ad
2 changed files with 4 additions and 2 deletions
  1. 2 2
      cli/single-file.js
  2. 2 0
      maff2html/single-file.js

+ 2 - 2
cli/single-file.js

@@ -88,14 +88,14 @@ const args = require("yargs")
 	.boolean("max-resource-size-enabled")
 	.options("max-resource-size", { description: "Maximum size of embedded resources (i.e. images, stylesheets, scripts and iframes)" })
 	.number("max-resource-size")
+	.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")
 	.options("remove-unused-styles", { description: "Remove unused CSS rules and unneeded declarations" })
 	.number("remove-unused-styles")
 	.options("remove-unused-fonts", { description: "Remove unused CSS font rules" })
 	.number("remove-unused-fonts")
-	.options("remove-frames", { description: "Remove frames (puppeteer, webdriver-gecko, webdriver-chromium)" })
-	.number("remove-frames")
 	.options("remove-imports", { description: "Remove HTML imports" })
 	.number("remove-imports")
 	.options("remove-scripts", { description: "Remove JavaScript scripts" })

+ 2 - 0
maff2html/single-file.js

@@ -84,6 +84,8 @@ const args = require("yargs")
 	.boolean("max-resource-size-enabled")
 	.options("max-resource-size", { description: "Maximum size of embedded resources (i.e. images, stylesheets, scripts and iframes)" })
 	.number("max-resource-size")
+	.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")
 	.options("remove-unused-styles", { description: "Remove unused CSS rules and unneeded declarations" })