Commit f119eb77 authored by deanm@chromium.org's avatar deanm@chromium.org

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
parent 77196c57
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment