File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -444,6 +444,26 @@ function sync_args_from_cmd(args) {
444444 }
445445 }
446446
447+ //Override build name for visual ui
448+ if ( "vi-build" in args ) {
449+ if ( lt_config . run_settings . smart_ui != undefined ) {
450+ lt_config . run_settings . smart_ui . build = args [ "vi-build" ] ;
451+ } else {
452+ lt_config . run_settings . smart_ui = { } ;
453+ lt_config . run_settings . smart_ui . build = args [ "vi-build" ] ;
454+ }
455+ }
456+
457+ //Override baseline for visual ui
458+ if ( "vi-base" in args ) {
459+ if ( lt_config . run_settings . smart_ui != undefined ) {
460+ lt_config . run_settings . smart_ui . baseline = args [ "vi-base" ] ;
461+ } else {
462+ lt_config . run_settings . smart_ui = { } ;
463+ lt_config . run_settings . smart_ui . baseline = args [ "vi-base" ] ;
464+ }
465+ }
466+
447467 if (
448468 lt_config . run_settings . project_name &&
449469 ! lt_config . run_settings . project_key
Original file line number Diff line number Diff line change @@ -187,6 +187,14 @@ const argv = require("yargs")
187187 alias : "vi-project" ,
188188 describe : "visual ui project name" ,
189189 type : "string" ,
190+ } ) . option ( "vib" , {
191+ alias : "vi-build" ,
192+ describe : "visual ui build name" ,
193+ type : "string" ,
194+ } ) . option ( "vibase" , {
195+ alias : "vi-base" ,
196+ describe : "visual ui baseline" ,
197+ type : "bool" ,
190198 } )
191199 . option ( "res" , {
192200 alias : "resolution" ,
You can’t perform that action at this time.
0 commit comments