confi-emacs-actual/snippets/sh-mode/getopts
2022-03-29 19:21:13 -04:00

13 lines
277 B
Plaintext

# -*- mode: snippet; require-final-newline: nil -*-
# name: getopts
# key: getopts
# uuid: getopts
# --
while getopts "${1:s:h:}" o; do
case "$o" in
${2:X}) `(doom-snippets-format "%n%s")`$0
;;
*) usage
;;
esac
done