|
|
@@ -23,7 +23,7 @@
|
|
|
|
|
|
/* global require, module */
|
|
|
|
|
|
-module.exports = require("yargs")
|
|
|
+const args = require("yargs")
|
|
|
.wrap(null)
|
|
|
.command("$0 [url] [output]", "Save a page into a single HTML file.", yargs => {
|
|
|
yargs.positional("url", { description: "URL or path on the filesystem of the page to save", type: "string" });
|
|
|
@@ -167,4 +167,9 @@ module.exports = require("yargs")
|
|
|
.boolean("user-script-enabled")
|
|
|
.options("web-driver-executable-path", { description: "Path to Selenium WebDriver executable (webdriver-gecko, webdriver-chromium)" })
|
|
|
.string("web-driver-executable-path")
|
|
|
- .argv;
|
|
|
+ .argv;
|
|
|
+args.compressCSS = args.compressCss;
|
|
|
+args.compressHTML = args.compressHtml;
|
|
|
+args.includeBOM = args.includeBom;
|
|
|
+args.crawlReplaceURLs = args.crawlReplaceUrls;
|
|
|
+module.exports = args;
|