From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 28 Mar 2025 08:13:00 +0000 (+0100) Subject: [3.13] gh-131818: Add imply `-P` in `-I`'s help message (GH-131819) (#131822) X-Git-Tag: v3.13.3~74 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5547c895e2136d251d858e57f7c59a723670f35e;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-131818: Add imply `-P` in `-I`'s help message (GH-131819) (#131822) gh-131818: Add imply `-P` in `-I`'s help message (GH-131819) (cherry picked from commit 8bd88e2827b2a887c2ea8e5ed0c0575704bfacdf) Co-authored-by: Hang --- diff --git a/Python/initconfig.c b/Python/initconfig.c index 8060a1647c0e..fc1657668058 100644 --- a/Python/initconfig.c +++ b/Python/initconfig.c @@ -157,7 +157,7 @@ Options (and corresponding environment variables):\n\ -h : print this help message and exit (also -? or --help)\n\ -i : inspect interactively after running script; forces a prompt even\n\ if stdin does not appear to be a terminal; also PYTHONINSPECT=x\n\ --I : isolate Python from the user's environment (implies -E and -s)\n\ +-I : isolate Python from the user's environment (implies -E, -P and -s)\n\ -m mod : run library module as a script (terminates option list)\n\ -O : remove assert and __debug__-dependent statements; add .opt-1 before\n\ .pyc extension; also PYTHONOPTIMIZE=x\n\