summaryrefslogtreecommitdiff
path: root/utils/findmisopt
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-09 00:50:32 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-09 00:50:32 +0000
commite4d8f33b0f1dfe0e6b2741c6936b26f21031ac90 (patch)
tree551d81e3f8facf9ea2ff799e176f4b314d9fbc07 /utils/findmisopt
parent28b7c7feab6219f4c9c7efc3b71a0a3f4880a14d (diff)
downloadllvm-e4d8f33b0f1dfe0e6b2741c6936b26f21031ac90.tar.gz
llvm-e4d8f33b0f1dfe0e6b2741c6936b26f21031ac90.tar.bz2
llvm-e4d8f33b0f1dfe0e6b2741c6936b26f21031ac90.tar.xz
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
Diffstat (limited to 'utils/findmisopt')
-rwxr-xr-xutils/findmisopt5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/findmisopt b/utils/findmisopt
index 15d72097fb..a6033ca88f 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"