plugin-update: argument validation

This commit is contained in:
Laurens Duijvesteijn 2016-07-03 13:15:57 +02:00
parent f9572739f6
commit ccefa996dc

View File

@ -1,4 +1,9 @@
plugin_update_command() {
if [ "$#" -ne 1 ]; then
display_error "usage: asdf plugin-update {<name> | --all}"
exit 1
fi
local plugin_name=$1
if [ "$plugin_name" = "--all" ]; then
for dir in $(asdf_dir)/plugins/*; do