Skip to content

Commit

Permalink
pythongh-102136: Add -m to options that work with -i (pythonGH-119271)
Browse files Browse the repository at this point in the history
* pythonGH-102136: Add -m to options that work with -i

* Linting
  • Loading branch information
melaniearbor authored and estyxx committed Jul 17, 2024
1 parent 966463a commit 97f0ca7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Doc/using/cmdline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,15 @@ Miscellaneous options

.. option:: -i

When a script is passed as first argument or the :option:`-c` option is used,
enter interactive mode after executing the script or the command, even when
:data:`sys.stdin` does not appear to be a terminal. The
Enter interactive mode after execution.

Using the :option:`-i` option will enter interactive mode in any of the following circumstances\:

* When a script is passed as first argument
* When the :option:`-c` option is used
* When the :option:`-m` option is used

Interactive mode will start even when :data:`sys.stdin` does not appear to be a terminal. The
:envvar:`PYTHONSTARTUP` file is not read.

This can be useful to inspect global variables or a stack trace when a script
Expand Down

0 comments on commit 97f0ca7

Please sign in to comment.