Closed antipisa closed 4 years ago
If we allow
pyq -m IPython -i script.py -- $PYARGS -- $QARGS
what would
pyq -m IPython -i script.py -- $ARGS
mean?
If we keep the current logic, $ARGS would be q args and to pass python args without q args you will have to do
pyq -m IPython -i script.py -- $PYARGS --
I think we can do this.
I agree, $ARGS should be q args, and a pure python script with -- $PYARGS --
would be consistent with
pyq -m IPython -i script.py -- $PYARGS -- $QARGS
Stale issue message
The new release of PyQ allows to specify q command line arguments referenced in #67. However one can no longer pass in a python script with arguments to an interactive IPython session. In 4.1.4, you could run a script in IPython/pyq with
pyq -m IPython -i script.py -- $PYARGS
but now any arguments proceeding -- are considered q arguments.pyq -m IPython -i $PYARGS script.py -- $QARGS
clearly would not work either.Is there a way to modify python.q to enable old behavior? Or allow something like this?
pyq -m IPython -i script.py -- $PYARGS -- $QARGS