From 1a63c2f9742ee5d612437d3404041dab1b0b042a 2015-07-30 05:19:36 From: Joel Nothman Date: 2015-07-30 05:19:36 Subject: [PATCH] Note use of -- for -i to behave like cpython Providing script arguments is only really useful with -i, and while this is described in the main Usage section of ipython --help, it seems more directly helpful here --- diff --git a/IPython/terminal/ipapp.py b/IPython/terminal/ipapp.py index 8954d7c..168134d 100755 --- a/IPython/terminal/ipapp.py +++ b/IPython/terminal/ipapp.py @@ -156,7 +156,10 @@ frontend_flags['quick']=( frontend_flags['i'] = ( {'TerminalIPythonApp' : {'force_interact' : True}}, - """If running code from the command line, become interactive afterwards.""" + """If running code from the command line, become interactive afterwards. + It is often useful to follow this with `--` to treat remaining flags as + script arguments. + """ ) flags.update(frontend_flags)