I like how gdb and lldb can take two sets of arguments, one for gdb/lldb itself and one for the target application. For example:
lldb /bin/ls -- -al -foo=bar
On the left side of the double-dash '--' you can put your lldb arguments and on the right side you can put your target args. Is there a way to read two sets of arguments like this in my Python script?
n = sys.argv.index('--'); left = sys.argv[:n]; right = sys.argv[n+1:]and catch ValueError when--isn't found.sys.argvwithsys.argv[1:]in my comment above (best create another variable and use that)