$OPTIND
–
Index of Last Argument Processed by getopts
$OPTIND contains the index of the last option argument processed by the getopts builtin.
Default value: 1.
Links
BashSupport Pro 是一款支持 optind** 的 **Zsh 集成开发环境 - 立即试用!