helpers2.1: typo in getopts

This commit is contained in:
Alexandre Aubin 2024-06-24 22:13:16 +02:00
parent ed426f05ba
commit e3bebeac98

View file

@ -51,6 +51,7 @@ ynh_handle_getopts_args() {
return return
# Validate that the first char is - because it should be something like --option=value or -o ... # Validate that the first char is - because it should be something like --option=value or -o ...
elif [[ "${1:0:1}" != "-" ]] elif [[ "${1:0:1}" != "-" ]]
then
ynh_die "It looks like you called the helper using positional arguments instead of keyword arguments ?" ynh_die "It looks like you called the helper using positional arguments instead of keyword arguments ?"
fi fi