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