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:
parent
b4c507e033
commit
929f63fecc
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user