From 1f75cac01eb24be8c907e5235cf88ae66b376e2f Mon Sep 17 00:00:00 2001 From: jxltom Date: Wed, 5 Dec 2018 10:07:55 +0800 Subject: [PATCH] Fix bug where --clear option is not supported for clearing cache --- pipenv/cli/command.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/pipenv/cli/command.py b/pipenv/cli/command.py index e51c98a6..84c797d4 100644 --- a/pipenv/cli/command.py +++ b/pipenv/cli/command.py @@ -62,18 +62,15 @@ def cli( state, where=False, venv=False, - rm=False, - bare=False, - three=False, - python=False, - help=False, py=False, envs=False, - man=False, + rm=False, + bare=False, completion=False, - pypi_mirror=None, + man=False, support=None, - clear=False, + help=False, + site_packages=False, **kwargs ): # Handle this ASAP to make shell startup fast. @@ -143,10 +140,9 @@ def cli( get_pipenv_diagnostics() return 0 # --clear was passed… - elif clear: + elif state.clear: do_clear() return 0 - # --venv was passed… elif venv: # There is no virtualenv yet.