Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
irunner command line options defer to file extensions #594
Original bug report:
when running irunner from git head with --interact or -i:
$ irunner --interact /tmp/test.py
irunner: error: no such option: --interact
also the --ipython option does not seem to work, it has regular python prompts and not the ipython prompts:
It seems that the file extension takes priority over the options passed, so a .py file is run in PythonRunner. It makes sense that the command line flags should have priority over file extensions, and it should be easy to change.
For --interact, make sure you follow the instructions in the usage message - you need an extra