2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 02:49:00 +00:00

zlib-flate: --version prints qpdf version

This commit is contained in:
Jay Berkenbilt 2021-12-20 17:25:18 -05:00
parent db7bd6feef
commit 402d1bcf4d

View File

@ -1,6 +1,7 @@
#include <qpdf/Pl_Flate.hh>
#include <qpdf/Pl_StdioFile.hh>
#include <qpdf/QUtil.hh>
#include <qpdf/QPDF.hh>
#include <stdio.h>
#include <string.h>
@ -41,7 +42,8 @@ int main(int argc, char* argv[])
if ((argc == 2) && (strcmp(argv[1], "--version") == 0))
{
std::cout << whoami << " version 1.0" << std::endl;
std::cout << whoami << " from qpdf version "
<< QPDF::QPDFVersion() << std::endl;
exit(0);
}