If no arg provided warn and exit with error.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 09 Jan 2010 20:17:15 +0200
changeset 32 785bc324c858
parent 31 f8a3877a91ad
child 33 237be6270393
child 37 e287a9f2ecf4
If no arg provided warn and exit with error.
find-new-words.sh
--- a/find-new-words.sh	Sat Jan 09 15:52:07 2010 +0200
+++ b/find-new-words.sh	Sat Jan 09 20:17:15 2010 +0200
@@ -2,6 +2,8 @@
 
 if [ -z $1 ]; then
   echo "Where dictionary?"
+  echo "Try $0 --help"
+  exit 1
 fi
 
 if [ "$1" = --help ]; then