So the way incoming arguments are dealt with is it first looks for -b, -c and -r (or -builder, -coder and -runner) in the arguments and decides from that which windows need to be open. If there is a filename after ending in .psyexp or .psyrun, then it will force the Builder or Runner window respectively to open and will open that file in it. This override isn’t there for .py files as the app itself is a .py file - however, you can open experiments directly in Coder via command line by specifying -c, like so:
We don’t have anything setup for running experiments directly from command line. In theory it wouldn’t be too difficult, with the latest version we upgraded from manual string parsing for arguments to using the argparse package so it’s quite simple to add new arguments now, but there’s not been much demand for it really.
This doesn’t work for me, but you seem to have changed the psychpyApp.py file with your switch to the argparse package, so maybe it will work with the new release.