#!/bin/bash
# filename: getopts-5.sh
echo Initial value: OPTERR=$OPTERR
while getopts "af" opts
do
  case $opts in
    a)
      echo a
      ;;
    f)
      OPTERR=0
      ;;
  esac
done
