[Python-checkins] bpo-38623: Doc: Add section for site module CLI. (GH-17858)

Inada Naoki webhook-mailer at python.org
Tue Jan 7 02:58:47 EST 2020

commit: ca94677a6216e2d41b04574986ce49d31a0b329c
branch: master
author: Inada Naoki <songofacandy at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-01-07T16:58:40+09:00

bpo-38623: Doc: Add section for site module CLI. (GH-17858)

M Doc/library/site.rst

diff --git a/Doc/library/site.rst b/Doc/library/site.rst
index e1ca160c107b8..b424e1ba348d8 100644
--- a/Doc/library/site.rst
+++ b/Doc/library/site.rst
@@ -236,6 +236,13 @@ Module contents
    .. versionadded:: 3.2
+.. _site-commandline:
+Command Line Interface
+.. program:: site
 The :mod:`site` module also provides a way to get the user directories from the
 command line:
@@ -244,8 +251,6 @@ command line:
    $ python3 -m site --user-site
-.. program:: site
 If it is called without arguments, it will print the contents of
 :data:`sys.path` on the standard output, followed by the value of
 :data:`USER_BASE` and whether the directory exists, then the same thing for

More information about the Python-checkins mailing list