diff --git a/news/5628.trivial.rst b/news/5628.trivial.rst new file mode 100644 index 0000000000..724ee853c2 --- /dev/null +++ b/news/5628.trivial.rst @@ -0,0 +1 @@ +Show a different message for ``pipenv check`` depending on the ``--use-installed`` option. diff --git a/pipenv/routines/check.py b/pipenv/routines/check.py index af4ddc5971..186ca6df50 100644 --- a/pipenv/routines/check.py +++ b/pipenv/routines/check.py @@ -95,10 +95,16 @@ def do_check( if not quiet and not project.s.is_quiet(): click.secho("Passed!", fg="green") if not quiet and not project.s.is_quiet(): - click.secho( - "Checking installed packages for vulnerabilities...", - bold=True, - ) + if use_installed: + click.secho( + "Checking installed packages for vulnerabilities...", + bold=True, + ) + else: + click.secho( + "Checking Pipfile.lock packages for vulnerabilities...", + bold=True, + ) if ignore: if not isinstance(ignore, (tuple, list)): ignore = [ignore]