Skip to content

Commit ff61f9c

Browse files
committed
Check for unrecognized options
1 parent c6786b9 commit ff61f9c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

bin/pyenv-users

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ for option in "${OPTIONS[@]}"; do
4646
pyenv help users
4747
exit 0
4848
;;
49+
* )
50+
echo "pyenv-users: unrecognized option '$option'"
51+
exit 1
52+
;;
4953
esac
5054
done
5155

0 commit comments

Comments
 (0)