I want do start the python interpreter and debug with sys.argv. I do not want to provide a python file. If I provide a file, the interpreter executes the file and finishes.
Is there a way to archive this?
python argA argB
...
>>> import sys
>>> print sys.argv
['argA','argB']
This is pretty much what you want:
$ python - argA argB
The first argument will show up as -, though - think of it as a pseudo script name. I don't think you can get away from that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With