Skip to content

Commit

Permalink
Defining multiple values for supported options
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshks committed Mar 28, 2020
1 parent 4381493 commit 71c3232
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/html/user_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 an config 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
Expand All @@ -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 args.


Environment Variables
---------------------
Expand Down
1 change: 1 addition & 0 deletions news/7803.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added example of defining multiple values for options which support them

0 comments on commit 71c3232

Please sign in to comment.