diff options
author | Vitaly Buka <vitalybuka@chromium.org> | 2014-08-19 14:22:19 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@chromium.org> | 2014-08-19 14:22:19 -0700 |
commit | 8cf33bc76455afda7c65f61e70899754a6186d2c (patch) | |
tree | aa4684574fe39c3649f87be920de9b762b056ea0 /samples/pdfium_test.cc | |
parent | 2d55db143eb59a4267160742669304bab2ae4985 (diff) | |
download | pdfium-8cf33bc76455afda7c65f61e70899754a6186d2c.tar.xz |
Fixed command line parting when no output is needed.
R=bo_xu@foxitsoftware.com
Review URL: https://codereview.chromium.org/492523002
Diffstat (limited to 'samples/pdfium_test.cc')
-rw-r--r-- | samples/pdfium_test.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc index 9a6513dc10..e92d7a1250 100644 --- a/samples/pdfium_test.cc +++ b/samples/pdfium_test.cc @@ -198,7 +198,8 @@ bool ParseCommandLine(int argc, const char* argv[], OutputFormat* output_format, if (strcmp(argv[cur_arg], "--bmp") == 0) *output_format = OUTPUT_BMP; #endif - cur_arg++; + if (*output_format != OUTPUT_NONE) + cur_arg++; } if (cur_arg >= argc) |