Move a few bits of mksnapshot over to the new flag system.
authordeanm@chromium.org <deanm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 12 Sep 2008 10:31:37 +0000 (10:31 +0000)
committerdeanm@chromium.org <deanm@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 12 Sep 2008 10:31:37 +0000 (10:31 +0000)
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@297 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/mksnapshot.cc

index 166f4ff..4db0b63 100644 (file)
@@ -150,10 +150,10 @@ int main(int argc, char** argv) {
   // Print the usage if an error occurs when parsing the command line
   // flags or if the help flag is set.
   int result = i::FlagList::SetFlagsFromCommandLine(&argc, argv, true);
-  if (result > 0 || argc != 2 || FLAG_h) {
+  if (result > 0 || argc != 2 || i::FLAG_h) {
     ::printf("Usage: %s [flag] ... outfile\n", argv[0]);
-    i::FlagList::Print(NULL, false);
-    return !FLAG_h;
+    i::FlagList::PrintHelp();
+    return !i::FLAG_h;
   }
 
   v8::V8::SetCounterFunction(counter_callback);