When an option expecting a parameter is not passed one, `opt_parse()`
does not fail because of an incorrect comparison.
This commit fixes the comparison so that `opt_parse()` fails and
prints an error message when a required parameter is missing.
if (( flags & __opt_flag_has_value )); then
((i++))
- if (( i > ${#argv[@]} )); then
+ if (( i >= ${#argv[@]} )); then
log_error "Missing argument after $param"
return 1
fi