When executing a script using optparse with ipython, it is normal
$ python main.py -i ./hoge.txt
Following the writing style
$ ipython main.py -i ./hoge.txt
The option is not recognized even if I execute.
$ ipython -- main.py -i ./hoge.txt
And.
As a result, commands after --
will not be parsed by ipython and can be executed normally.
Recommended Posts