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

22 views
Skip to first unread message

박한범

unread,
May 26, 2019, 1:47:17 AM5/26/19
to v8-dev

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);
}



박한범

unread,
May 26, 2019, 9:32:14 PM5/26/19
to v8-dev
mistyped.. mksnaphost => mksnapshot

2019년 5월 26일 (일) 오후 2:47, 박한범 <kes...@gmail.com>님이 작성:
--
--
v8-dev mailing list
v8-...@googlegroups.com
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 v8-dev+un...@googlegroups.com.
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 all
Reply to author
Forward
0 new messages