Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent error if !OPTIND is unbound (#18)
This PR adds a check that prevents an error when nounset is enabled (`set -u`) and `!OPTIND` is unbound, i.e. when there are no more arguments left to process and `getopts_long` encounters a final option that is missing a required argument. This matches the behavior of the builtin `getopts` command.
- Loading branch information