Skip to content

Commit 4b0e7e5

Browse files
authored
Merge pull request #12286 from notatallshaw/clarify---prefer-binary
Clarify --prefer-binary in cli help and docs
2 parents 0827d76 + 677c3ee commit 4b0e7e5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

news/12122.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clarify --prefer-binary in CLI and docs

src/pip/_internal/cli/cmdoptions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,10 @@ def prefer_binary() -> Option:
670670
dest="prefer_binary",
671671
action="store_true",
672672
default=False,
673-
help="Prefer older binary packages over newer source packages.",
673+
help=(
674+
"Prefer binary packages over source packages, even if the "
675+
"source packages are newer."
676+
),
674677
)
675678

676679

0 commit comments

Comments
 (0)