Index: tools/flags/SkCommandLineFlags.cpp |
diff --git a/tools/flags/SkCommandLineFlags.cpp b/tools/flags/SkCommandLineFlags.cpp |
index a7fe6bdc79c124d70e55b172bd0a9a717856d745..3c57d00f0d336c01fa16266caebe352368f44f47 100644 |
--- a/tools/flags/SkCommandLineFlags.cpp |
+++ b/tools/flags/SkCommandLineFlags.cpp |
@@ -312,8 +312,9 @@ void SkCommandLineFlags::Parse(int argc, char** argv) { |
} |
if (!flagMatched) { |
#if SK_BUILD_FOR_MAC |
- if (SkStrStartsWith(argv[i], "NSDocumentRevisions")) { |
- i++; // skip YES |
+ if (SkStrStartsWith(argv[i], "NSDocumentRevisions") |
+ || SkStrStartsWith(argv[i], "-NSDocumentRevisions")) { |
+ i++; // skip YES |
} else |
#endif |
if (FLAGS_undefok) { |