pypa / pip

The Python package installer
https://pip.pypa.io/
MIT License
9.55k stars 3.04k forks source link

Quiet option removes useful output #13018

Open koterpillar opened 1 month ago

koterpillar commented 1 month ago

Description

Running pip index versions produces an "experimental command" warning. Silencing this warning with --quiet silences the actual output first, so there is no way to disable just the warning while preserving the useful output.

The same happens with at least pip show and pip help.

Expected behavior

Commands whose primary purpose is to display output should not omit that output no matter how many levels of --quiet is given on the command line.

pip version

24.2

Python version

3.12.3

OS

Ubuntu

How to Reproduce

Run any of:

  1. pip index versions --quiet pip
  2. pip index versions --quiet --quiet pip
  3. pip help --quiet
  4. pip show --quiet pip

Observe no (useful) output.

Output

# pip index versions --quiet pip
WARNING: pip index is currently an experimental command. It may be removed/changed in a future release without prior warning.
# pip index versions --quiet --quiet pip
# pip help --quiet
# pip show --quiet pip

Code of Conduct

Smriti-Prajapati commented 1 month ago

hey please assign this issue to me.