Skip to content

Commit

Permalink
Document enabling --no-warn-script-location with falsy values
Browse files Browse the repository at this point in the history
Closes pypa#6209
  • Loading branch information
kx-chen committed Apr 1, 2019
1 parent ac9010e commit 7386587
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docs/html/user_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ set like this:
ignore-installed = true
no-dependencies = yes
To enable the boolean options ``--no-compile`` and ``--no-cache-dir``, falsy
values have to be used:
To enable the boolean options ``--no-compile``, ``--no-warn-script-location``
and ``--no-cache-dir``, falsy values have to be used:

.. code-block:: ini
Expand All @@ -406,6 +406,7 @@ values have to be used:
[install]
no-compile = no
no-warn-script-location = false
Appending options like ``--find-links`` can be written on multiple lines:

Expand Down
Empty file.
3 changes: 2 additions & 1 deletion src/pip/_internal/commands/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ def __init__(self, *args, **kw):
action="store_false",
dest="warn_script_location",
default=True,
help="Do not warn when installing scripts outside PATH",
help="Do not warn when installing scripts outside PATH. Must use "
"falsy value to enable.",
)
cmd_opts.add_option(
"--no-warn-conflicts",
Expand Down

0 comments on commit 7386587

Please sign in to comment.