OnCallReady

Commands

getopts - parse option arguments in a shell script

getopts OPTSTRING NAME [ARG...]

Examples

$ while getopts "e:v" opt; do case $opt in e) env=$OPTARG ;; v) verbose=1 ;; *) usage ;; esac; done

a colon after a letter means it takes an argument

Try getopts in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.