@@ -454,6 +454,17 @@ export class MlcpUi {
454454 this . mlcp = { } ;
455455 this . addMlcpOption ( options , 'import' , null , false ) ;
456456 this . addMlcpOption ( options , 'mode' , 'local' , false ) ;
457+
458+ let host = this . envService . settings . host ;
459+ let port = this . envService . settings . stagingPort ;
460+ let username = this . envService . settings . username ;
461+
462+
463+ this . addMlcpOption ( options , 'host' , host , false ) ;
464+ this . addMlcpOption ( options , 'port' , port , false ) ;
465+ this . addMlcpOption ( options , 'username' , username , false ) ;
466+ this . addMlcpOption ( options , 'password' , '*****' , false ) ;
467+
457468 this . addMlcpOption ( options , 'input_file_path' , this . inputFilePath , true ) ;
458469
459470 _ . each ( this . groups , ( group ) => {
@@ -491,14 +502,7 @@ export class MlcpUi {
491502 updateMlcpCommand ( ) : string {
492503 let mlcpCommand : string = 'mlcp' ;
493504 mlcpCommand += ( navigator . appVersion . indexOf ( 'Win' ) !== - 1 ) ? '.bat' : '.sh' ;
494-
495- let host = this . envService . settings . host ;
496- let port = this . envService . settings . stagingPort ;
497- let username = this . envService . settings . username ;
498-
499- let otherOptions = this . buildMlcpOptions ( ) . join ( ' ' ) ;
500- mlcpCommand +=
501- ` -host ${ host } -port ${ port } -username ${ username } -password ***** ${ otherOptions } ` ;
505+ mlcpCommand += ' ' + this . buildMlcpOptions ( ) . join ( ' ' ) ;
502506
503507 this . mlcpCommand = mlcpCommand ;
504508 return mlcpCommand ;
0 commit comments