mksnaphost does not print usage when run with --help option.

// 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 > 3) || i::FLAG_help) {
::printf("Usage: %s --startup_src=... --startup_blob=... [extras]\n",
argv[0]);
i::FlagList::PrintHelp();
return !i::FLAG_help;
}

It seems to have intended to print usage here. but it could not reach line 
258. because program will be exit in src/flags.cc:494.

if (FLAG_help) {
PrintHelp();
exit(0);
}



-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/45e4832d-433c-4c00-85bc-a2b517712c5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to