aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}