aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-06-20 08:24:56 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-20 08:24:56 -0700
commit77a83962acf9211637d5ed0c81e1141a1ede05e1 (patch)
tree34fb40b20215ab5877d89cac67bc9dafb7b4a251 /tools
parentf6fb36eebc388d0f02d05874924cb5bebb1670f3 (diff)
undefok -> bool
BUG=skia: not waiting for (dead?) win builder NOTRY=True R=reed@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/348063002
Diffstat (limited to 'tools')
-rw-r--r--tools/flags/SkCommandLineFlags.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/flags/SkCommandLineFlags.cpp b/tools/flags/SkCommandLineFlags.cpp
index 9b31b657e5..42e9ebd971 100644
--- a/tools/flags/SkCommandLineFlags.cpp
+++ b/tools/flags/SkCommandLineFlags.cpp
@@ -8,7 +8,7 @@
#include "SkCommandLineFlags.h"
#include "SkTDArray.h"
-DEFINE_string(undefok, "", "Silently ignore unknown flags listed here instead of crashing.");
+DEFINE_bool(undefok, false, "Silently ignore unknown flags instead of crashing.");
bool SkFlagInfo::CreateStringFlag(const char* name, const char* shortName,
SkCommandLineFlags::StringArray* pStrings,
@@ -291,7 +291,7 @@ void SkCommandLineFlags::Parse(int argc, char** argv) {
while (stripped.startsWith('-')) {
stripped.remove(0, 1);
}
- if (!FLAGS_undefok.contains(stripped.c_str())) {
+ if (!FLAGS_undefok) {
SkDebugf("Got unknown flag \"%s\". Exiting.\n", argv[i]);
exit(-1);
}