fix --help option

This commit is contained in:
Yamashita Yuu
2013-06-18 23:34:04 +09:00
parent 551956f017
commit 7a54a83392

View File

@@ -74,7 +74,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
pyenv-exec virtualenv --help 2>/dev/null || true
[ -z "$1" ] || exit "$1"
}