Print a usage message if too few arguments to program.

llvm-svn: 31581
This commit is contained in:
Reid Spencer 2006-11-09 00:50:32 +00:00
parent e73551303f
commit 206d609cdd
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@
# determined by diffing the program's output with the non-optimized
# output.
#
if [ "$#" -lt 3 ] ; then
echo "usage: findmisopt bcfile outdir progargs [match]"
exit 1
fi
bcfile="$1"
outdir="$2"
args="$3"