From ee490fc6600f90abd9d324a5c7fd10a82ea98e89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Mon, 9 Feb 2015 19:01:59 +0100 Subject: [PATCH] Add the --deep-js-analysis option to CLI --- bin/cli.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/cli.js b/bin/cli.js index a9e3c5d..832112f 100644 --- a/bin/cli.js +++ b/bin/cli.js @@ -12,7 +12,8 @@ var cli = meow({ ' yellowlabtools ', '', 'Options:', - ' --screenshot Will take a screenshot and use this value as the output path. It needs to end with ".png".', + ' --screenshot Will take a screenshot and use this value as the output path. It needs to end with ".png".', + ' --js-deep-analysis When activated, the javascriptExecutionTree will contain sub-requests.', '' ].join('\n'), pkg: '../package.json' @@ -44,6 +45,10 @@ if (screenshot) { options.screenshot = cli.flags.screenshot; } +// Deep JS analysis option +if (cli.flags.jsDeepAnalysis === true || cli.flags.jsDeepAnalysis === 'true') { + options.jsDeepAnalysis = true; +} (function execute(url, options) {