From e4d8f33b0f1dfe0e6b2741c6936b26f21031ac90 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 9 Nov 2006 00:50:32 +0000 Subject: Print a usage message if too few arguments to program. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31581 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/findmisopt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'utils/findmisopt') diff --git a/utils/findmisopt b/utils/findmisopt index 15d7209..a6033ca 100755 --- a/utils/findmisopt +++ b/utils/findmisopt @@ -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" -- cgit v1.1