From 77da6ae52c4a948ec75956ab39f8cc7955cd8f9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sun, 7 Aug 2022 11:39:56 +0200 Subject: [PATCH] Mention --quiet in --report option help --- news/11357.doc.rst | 1 + src/pip/_internal/commands/install.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 news/11357.doc.rst diff --git a/news/11357.doc.rst b/news/11357.doc.rst new file mode 100644 index 00000000000..887928a086e --- /dev/null +++ b/news/11357.doc.rst @@ -0,0 +1 @@ +Mention that --quiet must be used when writing the installation report to stdout. diff --git a/src/pip/_internal/commands/install.py b/src/pip/_internal/commands/install.py index 29907645c81..e4b90bde801 100644 --- a/src/pip/_internal/commands/install.py +++ b/src/pip/_internal/commands/install.py @@ -263,7 +263,9 @@ def add_options(self) -> None: "the provided requirements. " "Can be used in combination with --dry-run and --ignore-installed " "to 'resolve' the requirements. " - "When - is used as file name it writes to stdout." + "When - is used as file name it writes to stdout. " + "When writing to stdout, please combine with the --quiet option " + "to avoid mixing pip logging output with JSON output." ), )