venv: Fix handling of --cache

This commit is contained in:
Florian Bruhin 2015-01-24 18:01:25 +01:00
parent 29b9526a8e
commit 1e52f3856c

View File

@ -66,7 +66,7 @@ def parse_args():
action='store_true')
parser.add_argument('--cache', help="Cache the clean virtualenv and "
"copy it when a new one is requested.",
default=False, nargs='?', const='', metavar='NAME')
default=None, nargs='?', const='', metavar='NAME')
parser.add_argument('path', help="Path to the venv folder",
default='.venv', nargs='?')
return parser.parse_args()