@@ -440,6 +440,15 @@ and ``--no-cache-dir``, falsy values have to be used:
440
440
no-compile = no
441
441
no-warn-script-location = false
442
442
443
+ For options which can be repeated like ``--verbose `` and ``--quite ``,
444
+ a nonnegative integer could be used to represent the level to be specified:
445
+
446
+ ..code-block ::ini
447
+
448
+ [global]
449
+ quite = 0
450
+ verbose = 2
451
+
443
452
It is possible to append values to a section within a configuration file such as the pip.ini file.
444
453
This is applicable to appending options like ``--find-links `` or ``--trusted-host ``,
445
454
which can be written on multiple lines:
@@ -469,20 +478,20 @@ pip's command line options can be set with environment variables using the
469
478
format ``PIP_<UPPER_LONG_NAME> `` . Dashes (``- ``) have to be replaced with
470
479
underscores (``_ ``).
471
480
472
- For example, to set the default timeout::
473
-
474
- export PIP_DEFAULT_TIMEOUT=60
475
-
476
- This is the same as passing the option to pip directly::
481
+ For example, setting ``PIP_DEFAULT_TIMEOUT `` to 60 has the same effect as
482
+ passing the option to pip directly::
477
483
478
484
pip --default-timeout=60 [...]
479
485
480
- For command line options which can be repeated,use a space to separate
481
- multiple values. For example::
482
-
483
- export PIP_FIND_LINKS="http://mirror1.example.com http://mirror2.example.com"
486
+ For command line options which can be repeated,if they do not take any argument
487
+ like `` --quite `` or `` --verbose ``, use a nonnegative integer to represent
488
+ the number of repeatition, for instance setting `` PIP_VERBOSE `` to 3 is
489
+ equivalent to calling pip with `` -vvv ``.
484
490
485
- is the same as calling::
491
+ Fruitful repeatable options however, can be specified via environment variable
492
+ as a space-separated list. For example having ``PIP_FIND_LINKS `` set to
493
+ ``"http://mirror1.example.com http://mirror2.example.com" `` is the same as
494
+ calling ::
486
495
487
496
pip install --find-links=http://mirror1.example.com --find-links=http://mirror2.example.com
488
497