From 653b9f9d0c19aeb15b32cc2d0e519c743abc44e0 Mon Sep 17 00:00:00 2001
From: rosen-vladimirov <rosen.vladimirov@telerik.com>
Date: Wed, 26 Apr 2017 23:35:56 +0300
Subject: [PATCH] Fix emulate command

During refactoring we've decided to pass the whole `$options` object from commands to services. However we've forgotten to change the emulate command.
Pass correct argument which will fix the issue.
---
 lib/commands/emulate.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/commands/emulate.ts b/lib/commands/emulate.ts
index dfb25faf2c..51cb3068ef 100644
--- a/lib/commands/emulate.ts
+++ b/lib/commands/emulate.ts
@@ -27,7 +27,7 @@ export class EmulateCommandBase {
 			keyStorePassword: this.$options.keyStorePassword,
 			keyStorePath: this.$options.keyStorePath
 		};
-		return this.$platformService.emulatePlatform(args[0], appFilesUpdaterOptions, emulateOptions, this.$projectData, this.$options.provision);
+		return this.$platformService.emulatePlatform(args[0], appFilesUpdaterOptions, emulateOptions, this.$projectData, this.$options);
 	}
 }