diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-01-31 20:20:06 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-01-31 21:57:45 +0100 |
commit | e3506253f17137d6d4831b4615d74689446da72c (patch) | |
tree | 5357ed44fbbd4be6e41935a8f2d6c43ce2913316 /qpdf | |
parent | b4fb9b4ec3e70945b07436c1f4a6a222c2d28b9f (diff) | |
download | qpdf-e3506253f17137d6d4831b4615d74689446da72c.tar.zst |
Add optional version to --json
Diffstat (limited to 'qpdf')
-rw-r--r-- | qpdf/qtest/qpdf.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpdf/qtest/qpdf.test b/qpdf/qtest/qpdf.test index 447aa258..f847cee8 100644 --- a/qpdf/qtest/qpdf.test +++ b/qpdf/qtest/qpdf.test @@ -617,7 +617,7 @@ $td->runtest("list attachments verbose", {$td->FILE => "test76-list-verbose.out", $td->EXIT_STATUS => 0}, $td->NORMALIZE_NEWLINES); $td->runtest("attachments json", - {$td->COMMAND => "qpdf --json --json-key=attachments a.pdf"}, + {$td->COMMAND => "qpdf --json=1 --json-key=attachments a.pdf"}, {$td->FILE => "test76-json.out", $td->EXIT_STATUS => 0}, $td->NORMALIZE_NEWLINES); $td->runtest("remove attachment (test_driver)", @@ -2705,7 +2705,7 @@ $td->runtest("show direct pages", foreach my $f (qw(page_api_2 direct-pages)) { $td->runtest("json for $f", - {$td->COMMAND => "qpdf --json $f.pdf"}, + {$td->COMMAND => "qpdf --json=latest $f.pdf"}, {$td->FILE => "$f-json.out", $td->EXIT_STATUS => 0}, $td->NORMALIZE_NEWLINES); } |