Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defining multiple values for supported options #7918

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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

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 arguments.


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