summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
Diffstat (limited to 'samples')
-rw-r--r--samples/pdfium_test.cc3
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)