Skip to content

Commit c8523f5

Browse files
authored
Merge pull request #196 from japneetlambdatest/CYP-413
Cyp 413
2 parents bd479c8 + f21d5ad commit c8523f5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

commands/utils/set_args.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,18 @@ function sync_args_from_cmd(args) {
380380
);
381381

382382
if ("npm-f" in args) {
383-
lt_config.run_settings.npmf = args["npm-f"];
383+
if (args["npm-f"] == "true") {
384+
lt_config.run_settings.npmf = true;
385+
} else {
386+
lt_config.run_settings.npmf = false;
387+
}
384388
}
385389
if ("npm-lpd" in args) {
386-
lt_config.run_settings.npmlpd = args["npm-lpd"];
390+
if (args["npm-lpd"] == "true") {
391+
lt_config.run_settings.npmlpd = true;
392+
} else {
393+
lt_config.run_settings.npmlpd = false;
394+
}
387395
}
388396
//get specs from current directory if specs are not passed in config or cli
389397
if (

0 commit comments

Comments
 (0)