diff options
author | Jay Berkenbilt <ejb@ql.org> | 2021-12-20 23:25:18 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-12-20 23:25:18 +0100 |
commit | 402d1bcf4d11c6300cb73e43dfb4312b6efe7095 (patch) | |
tree | 6a5ae1fefe4a5fe8a939ba58702a53eb5480b88e /zlib-flate | |
parent | db7bd6feef3004927c830213ccd4f7a0bebc92f5 (diff) | |
download | qpdf-402d1bcf4d11c6300cb73e43dfb4312b6efe7095.tar.zst |
zlib-flate: --version prints qpdf version
Diffstat (limited to 'zlib-flate')
-rw-r--r-- | zlib-flate/zlib-flate.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zlib-flate/zlib-flate.cc b/zlib-flate/zlib-flate.cc index ae0fa4e1..e02da29a 100644 --- a/zlib-flate/zlib-flate.cc +++ b/zlib-flate/zlib-flate.cc @@ -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); } |