Skip to content

Commit 7042422

Browse files
committed
Only accept one positional argument
1 parent f0af465 commit 7042422

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/pyenv-users

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ if [[ "${#ARGUMENTS[@]}" == 0 ]]; then
113113
DIR="$PYENV_DIR"
114114
elif [[ "${#ARGUMENTS[@]}" == 1 ]]; then
115115
DIR="${ARGUMENTS[0]}"
116+
else
117+
pyenv help users
118+
exit 1
116119
fi
117120

118121
# The `links` are the symlink pathnames, `versions` are pyenv version strings,

0 commit comments

Comments
 (0)