Skip to content

Commit cc4641f

Browse files
authored
Revert "Revert "added full har cap""
1 parent 33da5d2 commit cc4641f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

commands/utils/set_args.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,14 @@ function sync_args_from_cmd(args) {
489489
lt_config["run_settings"]["exclude_specs"] == [];
490490
}
491491

492+
if ("fullHar" in args) {
493+
if (args["fullHar"] == "true") {
494+
lt_config.run_settings.fullHar = true;
495+
} else {
496+
lt_config.run_settings.fullHar = false;
497+
}
498+
}
499+
492500
if ("npm-f" in args) {
493501
if (args["npm-f"] == "true") {
494502
lt_config.run_settings.npmf = true;

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ const argv = require("yargs")
122122
describe: "Capture Network logs",
123123
type: "string",
124124
})
125+
.option("fullHar", {
126+
alias: "fullHar",
127+
describe: "Capture Full Har Network logs",
128+
type: "bool",
129+
})
125130
.option("eof", {
126131
alias: "exit-on-failure",
127132
describe: "Exit With Code 1 on failure",

0 commit comments

Comments
 (0)