From baa524eda5b0d106b71a897bc3b12c34abb1196d Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Fri, 16 Sep 2016 02:52:04 -0700 Subject: [PATCH] Fixes #250 - Can't pass in command line args to the iOS application Thanks to https://github.com/dot-asm --- src/scripts/lldb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/lldb.py b/src/scripts/lldb.py index 627173b..ce3a8b0 100644 --- a/src/scripts/lldb.py +++ b/src/scripts/lldb.py @@ -34,7 +34,9 @@ def run_command(debugger, command, result, internal_dict): lldb.target.modules[0].SetPlatformFileSpec(lldb.SBFileSpec(device_app)) args_arr = [] if len(args) > 1: - args_arr = shlex.split(args[1] and args[1] or '{args}') + args_arr = shlex.split(args[1]) + else: + args_arr = shlex.split('{args}') lldb.target.Launch(lldb.SBLaunchInfo(args_arr), error) lockedstr = ': Locked' if lockedstr in str(error):