Skip to content

Commit e5be038

Browse files
Merge branch 'dev' into CYP-413
2 parents 2b1c5c2 + 407a78a commit e5be038

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

commands/utils/set_args.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,15 @@ function sync_args_from_cmd(args) {
294294
} else if (!lt_config["run_settings"]["stop_on_failure"]) {
295295
lt_config["run_settings"]["stop_on_failure"] = false;
296296
}
297+
//Override project name for visual ui
298+
if ("vi-project" in args) {
299+
if (lt_config.run_settings.smart_ui != undefined) {
300+
lt_config.run_settings.smart_ui.project = args["vi-project"];
301+
} else {
302+
lt_config.run_settings.smart_ui = {};
303+
lt_config.run_settings.smart_ui.project = args["vi-project"];
304+
}
305+
}
297306

298307
if (
299308
lt_config.run_settings.project_name &&

index.js

100755100644
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ const argv = require("yargs")
142142
alias: "legacy-peer-deps",
143143
describe: "force npm install",
144144
type: "bool",
145+
.option("vip", {
146+
alias: "vi-project",
147+
describe: "visual ui project name",
148+
type: "string",
145149
});
146150
},
147151
function (argv) {

0 commit comments

Comments
 (0)