From b46b4b5cf6dec9bdffc7f1ba273fa35eed04ed95 2021-07-06 17:42:04 From: Strawkage <86151183+strawhat54@users.noreply.github.com> Date: 2021-07-06 17:42:04 Subject: [PATCH] Backport PR #13044: Update reference.rst --- diff --git a/docs/source/interactive/reference.rst b/docs/source/interactive/reference.rst index ccd3773..6ff0097 100644 --- a/docs/source/interactive/reference.rst +++ b/docs/source/interactive/reference.rst @@ -11,8 +11,11 @@ You start IPython with the command:: $ ipython [options] files -If invoked with no options, it executes all the files listed in sequence and -exits. If you add the ``-i`` flag, it drops you into the interpreter while still +If invoked with no options, it executes the file and exits, passing the +remaining arguments to the script, just as if you had specified the same +command with python. You may need to specify `--` before args to be passed +to the script, to prevent IPython from attempting to parse them. +If you add the ``-i`` flag, it drops you into the interpreter while still acknowledging any options you may have set in your ``ipython_config.py``. This behavior is different from standard Python, which when called as python ``-i`` will only execute one file and ignore your configuration setup.