]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-102136: Add -m to options that work with -i (GH-119271)
authorMelanie Arbor <hellomelaniec@gmail.com>
Mon, 20 May 2024 23:38:33 +0000 (19:38 -0400)
committerGitHub <noreply@github.com>
Mon, 20 May 2024 23:38:33 +0000 (19:38 -0400)
* GH-102136: Add -m to options that work with -i

* Linting

Doc/using/cmdline.rst

index 2d95fa9474033f58d3eeba40863a33cdf44b6b8c..dcca9060899a0fced1899aecf7f9b7fc6c330330 100644 (file)
@@ -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