diff options
Diffstat (limited to 'snippets/sh-mode')
-rw-r--r-- | snippets/sh-mode/getopts | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/snippets/sh-mode/getopts b/snippets/sh-mode/getopts deleted file mode 100644 index 8f6fc39..0000000 --- a/snippets/sh-mode/getopts +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | # -*- mode: snippet -*- | ||
2 | # name: getopts | ||
3 | # key: getopts | ||
4 | # -- | ||
5 | while getopts ${1:h} opt; do | ||
6 | case "$opt" in | ||
7 | $0 | ||
8 | esac | ||
9 | done | ||
10 | shift $(( OPTIND -1 )) \ No newline at end of file | ||