From 086b1c8a15f06ba39d1934dd09c31278bec728a0 Mon Sep 17 00:00:00 2001 From: diego Date: Wed, 4 Feb 2009 19:17:03 +0000 Subject: [PATCH] Print an error message when given insufficient parameters. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28467 b3059339-0415-0410-9bf9-f77b7e298cf2 --- help/help_create.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/help/help_create.sh b/help/help_create.sh index ccb756d6b9..87a0ade4ab 100755 --- a/help/help_create.sh +++ b/help/help_create.sh @@ -3,6 +3,12 @@ # Missing messages are filled in from the master message file and, if # requested, character set conversion is performed. +if test -z $2 ; then + echo "Error: missing parameters" + echo "Usage: $0 " + exit 1 +fi + MASTER=help/help_mp-en.h TARGET=help_mp.h -- 2.11.4.GIT