From: Ted Kremenek Date: Wed, 2 Apr 2008 16:35:01 +0000 (+0000) Subject: Added error message for unrecognized options. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0062ad4f47d152def1f720878aaf5904b22aefbf;p=clang Added error message for unrecognized options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49092 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }