From aa40b772d2bb750cb5e168f37821e82abe270e17 Mon Sep 17 00:00:00 2001 From: Ian Fischer Date: Thu, 23 Jul 2015 16:41:13 -0700 Subject: [PATCH] Command line options for launching a particular Sky app in the simulator. --- engine/src/flutter/build/config/ios/ios_sim.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/build/config/ios/ios_sim.py b/engine/src/flutter/build/config/ios/ios_sim.py index e56fd6e5788..c48445276d6 100755 --- a/engine/src/flutter/build/config/ios/ios_sim.py +++ b/engine/src/flutter/build/config/ios/ios_sim.py @@ -57,6 +57,10 @@ def InstallLaunchAndWait(args, wait): launch_args += [ 'booted', identifier, + '-target', + args.target, + '-server', + args.server ] return subprocess.check_output( SIMCTL_PATH + launch_args ).strip() @@ -83,10 +87,18 @@ def Debug(args): def Main(): parser = argparse.ArgumentParser(description='A script that launches an' ' application in the simulator and attaches' - ' the debugger to the same') + ' the debugger to it.') parser.add_argument('-p', dest='path', required=True, - help='Path the the simulator application') + help='Path to the simulator application.') + + parser.add_argument('-t', dest='target', required=False, + default='sky/sdk/example/demo_launcher/lib/main.dart', + help='Sky server-relative path to the Sky app to run.') + + parser.add_argument('-s', dest='server', required=False, + default='localhost:8080', + help='Sky server address.') subparsers = parser.add_subparsers()