Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: tools/SkFlags.cpp

Issue 12881014: When SkFlags encounters an invalid flag, quit. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/SkFlags.cpp
diff --git a/tools/SkFlags.cpp b/tools/SkFlags.cpp
index 84b5ef297dd73e914b4796668819ee3958b082bd..2d124b6edacca141fd6053b33301a920c4bb8dc5 100644
--- a/tools/SkFlags.cpp
+++ b/tools/SkFlags.cpp
@@ -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);
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698