diff options
author | Melanie Arbor <hellomelaniec@gmail.com> | 2024-05-20 23:38:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-20 23:38:33 (GMT) |
commit | 172690227e771c2e8ab137815073e3a172c08dec (patch) | |
tree | d96a629eb62bb19ff3f5a3846f3a6f809cb66402 /Doc | |
parent | 423bbcbbc43cacfb6a217c04f890a47d3cf7c3a9 (diff) | |
download | cpython-172690227e771c2e8ab137815073e3a172c08dec.zip cpython-172690227e771c2e8ab137815073e3a172c08dec.tar.gz cpython-172690227e771c2e8ab137815073e3a172c08dec.tar.bz2 |
gh-102136: Add -m to options that work with -i (GH-119271)
* GH-102136: Add -m to options that work with -i
* Linting
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/using/cmdline.rst | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst index 2d95fa9..dcca906 100644 --- a/Doc/using/cmdline.rst +++ b/Doc/using/cmdline.rst @@ -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 |