diff options
-rw-r--r-- | subr.ex/ex_init.subr | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/subr.ex/ex_init.subr b/subr.ex/ex_init.subr index 80dda794..13e0edd3 100644 --- a/subr.ex/ex_init.subr +++ b/subr.ex/ex_init.subr @@ -128,6 +128,7 @@ ex_init_getopts() { ;; esac; + OPTIND=0; if getopts "${_eig_optstring}" _eig_opt; then "${_eig_fn}" opt "${_eig_rstatus}" "${_eig_opt}" "${OPTARG:-}" "${@}"; _eig_fn_rc="${?}"; |