Index: tools/flags/SkCommandLineFlags.cpp |
diff --git a/tools/flags/SkCommandLineFlags.cpp b/tools/flags/SkCommandLineFlags.cpp |
index 6f1491bf1cb00dcd8bd506c1fec4458dc781860b..8929c38375f329bb3c9a703cd0e6d360930182ae 100644 |
--- a/tools/flags/SkCommandLineFlags.cpp |
+++ b/tools/flags/SkCommandLineFlags.cpp |
@@ -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); |
} |
} |