prog="${0##*/}"

if [ -n "${OPTARG##*[!0-9]*}" ]; then
  echo "${prog}: argument not a number" 1>&2
  exit 1
fi
