diff --git a/news/3348.feature.rst b/news/3348.feature.rst new file mode 100644 index 0000000000..50547a3d79 --- /dev/null +++ b/news/3348.feature.rst @@ -0,0 +1 @@ +Added support for ``--verbose`` output to ``pipenv run``. \ No newline at end of file diff --git a/pipenv/core.py b/pipenv/core.py index f26a2edc73..084042e0fb 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -2303,6 +2303,9 @@ def do_run(command, args, three=None, python=False, pypi_mirror=None): inline_activate_virtual_environment() try: script = project.build_script(command, args) + cmd_string = ' '.join([script.command] + script.args) + if environments.is_verbose(): + click.echo(crayons.normal("$ {0}".format(cmd_string)), err=True) except ScriptEmptyError: click.echo("Can't run script {0!r}-it's empty?", err=True) if os.name == "nt":