Make --undefok a little louder now that we're using it all the time.

BUG=skia:

Review URL: https://codereview.chromium.org/1073483002
This commit is contained in:
mtklein 2015-04-08 08:30:38 -07:00 committed by Commit bot
parent b4c507e033
commit 929f63fecc

View File

@ -313,8 +313,10 @@ void SkCommandLineFlags::Parse(int argc, char** argv) {
i++; // skip YES
} else
#endif
if (!FLAGS_undefok) {
SkDebugf("Got unknown flag \"%s\". Exiting.\n", argv[i]);
if (FLAGS_undefok) {
SkDebugf("FYI: ignoring unknown flag '%s'.\n", argv[i]);
} else {
SkDebugf("Got unknown flag '%s'. Exiting.\n", argv[i]);
exit(-1);
}
}