From 326efa5c710ecf19acc3e1315477251a4cd4bd13 Mon Sep 17 00:00:00 2001 From: Devesh Kumar Singh Date: Sat, 28 Mar 2020 17:31:13 +0530 Subject: [PATCH] Defining multiple values for supported options --- docs/html/user_guide.rst | 11 ++++++++++- news/7803.doc | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 news/7803.doc diff --git a/docs/html/user_guide.rst b/docs/html/user_guide.rst index b9ea48580..3195a4011 100644 --- a/docs/html/user_guide.rst +++ b/docs/html/user_guide.rst @@ -440,7 +440,9 @@ and ``--no-cache-dir``, falsy values have to be used: no-compile = no no-warn-script-location = false -Appending options like ``--find-links`` can be written on multiple lines: +It is possible to append values to a section within a configuration file such as the pip.ini file. +This is applicable to appending options like ``--find-links`` or ``--trusted-host``, +which can be written on multiple lines: .. code-block:: ini @@ -453,6 +455,13 @@ Appending options like ``--find-links`` can be written on multiple lines: http://mirror1.example.com http://mirror2.example.com + [install] + trusted-host = + http://mirror1.example.com + http://mirror2.example.com + +This enables users to add additional values in the order of entry for such command line arguments. + Environment Variables --------------------- diff --git a/news/7803.doc b/news/7803.doc new file mode 100644 index 000000000..bf86b8976 --- /dev/null +++ b/news/7803.doc @@ -0,0 +1 @@ +Added example of defining multiple values for options which support them