aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skhello.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/skhello.cpp')
-rw-r--r--tools/skhello.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/skhello.cpp b/tools/skhello.cpp
index 271041589f..a4451ac91a 100644
--- a/tools/skhello.cpp
+++ b/tools/skhello.cpp
@@ -11,8 +11,8 @@
#include "SkImageEncoder.h"
#include "SkString.h"
-DEFINE_string(o, "skhello.png", "The filename to write the image.");
-DEFINE_string(t, "Hello", "The string to write.");
+DEFINE_string2(outFile, o, "skhello.png", "The filename to write the image.");
+DEFINE_string2(text, t, "Hello", "The string to write.");
int tool_main(int argc, char** argv);
int tool_main(int argc, char** argv) {
@@ -23,11 +23,11 @@ int tool_main(int argc, char** argv) {
SkString path("skhello.png");
SkString text("Hello");
- if (!FLAGS_o.isEmpty()) {
- path.set(FLAGS_o[0]);
+ if (!FLAGS_outFile.isEmpty()) {
+ path.set(FLAGS_outFile[0]);
}
- if (!FLAGS_t.isEmpty()) {
- text.set(FLAGS_t[0]);
+ if (!FLAGS_text.isEmpty()) {
+ text.set(FLAGS_text[0]);
}
SkPaint paint;