Merge pull request #15 from L-four/master

Print usage and exit when no stdin and no arguments are present
This commit is contained in:
maandree 2012-05-08 05:15:06 -07:00
commit a018192fa0

View file

@ -45,6 +45,12 @@ Options:
EOF
}
# if no stdin and no argumrnts then print usage and exit
if [[ -t 0 && $# == 0 ]]; then
usage
exit
fi
say() {
# Ponies use UTF-8 drawing characters. Prevent a Perl warning.
export PERL_UNICODE=S