From 5b357d2862ac1c969191af30289b7872dd7f8a5f Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Wed, 1 May 2013 13:07:49 +0900 Subject: [PATCH] display virtualenv's help message on '--help' --- bin/pyenv-virtualenv | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/pyenv-virtualenv b/bin/pyenv-virtualenv index 914931e..0da7a5d 100755 --- a/bin/pyenv-virtualenv +++ b/bin/pyenv-virtualenv @@ -3,6 +3,8 @@ # Summary: Create a Python virtualenv using the pyenv-virtualenv plugin # # Usage: pyenv virtualenv [VIRTUALENV_OPTIONS] +# pyenv virtualenv --version +# pyenv virtualenv --help # PYENV_VIRTUALENV_VERSION="20130307" @@ -69,6 +71,7 @@ version() { usage() { # We can remove the sed fallback once pyenv 0.2.0 is widely available. pyenv-help virtualenv 2>/dev/null || sed -ne '/^#/!q;s/.//;s/.//;1,4d;p' < "$0" + pyenv-exec python "${VIRTUALENV}" --help 2>/dev/null || true [ -z "$1" ] || exit "$1" }