aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-02 16:35:01 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-02 16:35:01 +0000
commit0062ad4f47d152def1f720878aaf5904b22aefbf (patch)
treeccf9398cc05a44404e3f29c73fd76e7598349861
parentaf08f64abc38af5914d96106aeb014a2e06eb865 (diff)
Added error message for unrecognized options.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49092 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xutils/scan-build4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/scan-build b/utils/scan-build
index 5600b052cb..b3cb9325e8 100755
--- a/utils/scan-build
+++ b/utils/scan-build
@@ -239,7 +239,7 @@ while (@ARGV) {
shift @ARGV;
if (!@ARGV) {
- die "'-o' option requires a target directory name.";
+ die "$Prog: '-o' option requires a target directory name.\n";
}
$HtmlDir = shift @ARGV;
@@ -258,6 +258,8 @@ while (@ARGV) {
next;
}
+ die "$Prog: unrecognized option '$arg'\n" if ($arg =~ /^-/);
+
last;
}