Tag
1Snippet
#Argument parsing

Bash Argument Parsing with getopts: Build CLI Scripts with Flags and Options
Quick Tip getopts is a shell builtin that parses short flags properly, including grouped ones like -vf. Here is the full pattern, including the shift everybody forgets and the `local OPTIND