Просмотр исходного кода

documented --user-agent switch (cf #275)

Former-commit-id: 2ca5b098cab0ea75f10dac8b89856a59366c2ea3
Gildas 6 лет назад
Родитель
Сommit
dc40e74acc
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      cli/single-file

+ 2 - 0
cli/single-file

@@ -131,6 +131,8 @@ const args = require("yargs")
 	.boolean("remove-alternative-images")
 	.options("save-raw-page", { description: "Save the original page without interpreting it into the browser (puppeteer, webdriver-gecko, webdriver-chromium)" })
 	.boolean("save-raw-page")
+	.options("user-agent", { description: "User-agent of the browser (puppeteer, webdriver-gecko, webdriver-chromium)" })
+	.string("user-agent")
 	.options("web-driver-executable-path", { description: "Path to Selenium WebDriver executable (webdriver-gecko, webdriver-chromium)" })
 	.string("web-driver-executable-path")
 	.argv;