mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-15 06:53:52 -05:00
fix --help option
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user