$ ./guess_the_languageProgramming Languages
Programming Languages · medium · #637

Which programming language is this?

while getopts "vo:" opt; do
  case $opt in
    v) verbose=1 ;;
    o) out="$OPTARG" ;;
  esac
done
shift $((OPTIND - 1))

Answer: Bash

A while getopts loop reading $OPTARG followed by shift $((OPTIND - 1)) is Bash option parsing.
Play Programming Languages ▸