When SkFlags encounters an invalid flag, quit.

This way the user knows to change their command line.

Review URL: https://codereview.chromium.org/12881014

git-svn-id: http://skia.googlecode.com/svn/trunk@8275 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
scroggo@google.com 2013-03-20 20:04:27 +00:00
parent 2689f615e3
commit 0f2cd172af

View File

@ -157,7 +157,8 @@ void SkFlags::ParseCommandLine(int argc, char** argv) {
flag = flag->next();
}
if (!flagMatched) {
SkDebugf("skipping unknown flag %s\n", argv[i]);
SkDebugf("Got unknown flag \"%s\". Exiting.\n", argv[i]);
exit(-1);
}
}
}