# -*- mode: snippet -*-
# name: getopts
# key: getopts
# --
while getopts ${1:h} opt; do
case "$opt" in
$0
esac
done
shift $(( OPTIND -1 ))