From f119eb772e25eb72818edffce5f5f1bcc573e968 Mon Sep 17 00:00:00 2001 From: "deanm@chromium.org" Date: Fri, 12 Sep 2008 10:31:37 +0000 Subject: [PATCH] Move a few bits of mksnapshot over to the new flag system. git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@297 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/mksnapshot.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mksnapshot.cc b/src/mksnapshot.cc index 166f4ff..4db0b63 100644 --- a/src/mksnapshot.cc +++ b/src/mksnapshot.cc @@ -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); -- 2.7.4