]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38623: Doc: Add section for site module CLI. (GH-17858)
authorInada Naoki <songofacandy@gmail.com>
Tue, 7 Jan 2020 07:58:40 +0000 (16:58 +0900)
committerGitHub <noreply@github.com>
Tue, 7 Jan 2020 07:58:40 +0000 (16:58 +0900)
Doc/library/site.rst

index e1ca160c107b8b88983546d2b006f66d99b1e9b8..b424e1ba348d870a7534d54cec06a29fcb9cec88 100644 (file)
@@ -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
    /home/user/.local/lib/python3.3/site-packages
 
-.. 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