[cfe-commits] r49092 - /cfe/trunk/utils/scan-build

Ted Kremenek kremenek at apple.com
Wed Apr 2 09:35:01 PDT 2008


Author: kremenek
Date: Wed Apr  2 11:35:01 2008
New Revision: 49092

URL: http://llvm.org/viewvc/llvm-project?rev=49092&view=rev
Log:
Added error message for unrecognized options.

Modified:
    cfe/trunk/utils/scan-build

Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=49092&r1=49091&r2=49092&view=diff

==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Wed Apr  2 11:35:01 2008
@@ -239,7 +239,7 @@
     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 @@
     next;
   }
   
+  die "$Prog: unrecognized option '$arg'\n" if ($arg =~ /^-/);
+  
   last;
 }
 





More information about the cfe-commits mailing list