Fix command line parsing crash.

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23005 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
vogelheim@chromium.org 2014-08-08 14:42:18 +00:00
parent 102a17402f
commit d26b636085

View File

@ -372,7 +372,8 @@ int FlagList::SetFlagsFromCommandLine(int* argc,
value == NULL) {
if (i < *argc) {
value = argv[i++];
} else {
}
if (!value) {
PrintF(stderr, "Error: missing value for flag %s of type %s\n"
"Try --help for options\n",
arg, Type2String(flag->type()));