projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28b7c7f
)
Print a usage message if too few arguments to program.
author
Reid Spencer
<rspencer@reidspencer.com>
Thu, 9 Nov 2006 00:50:32 +0000
(
00:50
+0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Thu, 9 Nov 2006 00:50:32 +0000
(
00:50
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31581
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/findmisopt
patch
|
blob
|
history
diff --git
a/utils/findmisopt
b/utils/findmisopt
index 15d72097fbe9139e44e211ad9e61028d4c38e719..a6033ca88fa9f59578fdaa7d38df4bf69375ca14 100755
(executable)
--- 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"