This commit is contained in:
2018-07-03 17:57:29 -04:00
parent 9727a76849
commit 1fd84d3448
+4 -3
View File
@@ -29,6 +29,7 @@ from .utils import is_valid_url
click_completion.init()
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
class PipenvGroup(Group):
"""Custom Group class provides formatted main help"""
@@ -224,7 +225,7 @@ def cli(
do_clear()
sys.exit(0)
# --venv was passed...
# --venv was passed
elif venv:
# There is no virtualenv yet.
if not project.virtualenv_exists:
@@ -236,7 +237,7 @@ def cli(
else:
echo(project.virtualenv_location)
sys.exit(0)
# --rm was passed...
# --rm was passed
elif rm:
# Abort if --system (or running in a virtualenv).
if environments.PIPENV_USE_SYSTEM:
@@ -270,7 +271,7 @@ def cli(
err=True,
)
sys.exit(1)
# --two / --three was passed...
# --two / --three was passed
if (python or three is not None) or site_packages:
ensure_project(
three=three,