dotar/vim/snippets/sh/$#.snippet

7 lines
84 B
Plaintext
Raw Normal View History

2011-11-17 15:45:33 -06:00
if [ $# -lt 1 ]; then
echo "${1:#missing arguments}"
exit 1
else
${2:#action}
fi