mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 10:58:58 +00:00
zlib-flate: --version prints qpdf version
This commit is contained in:
parent
db7bd6feef
commit
402d1bcf4d
@ -1,6 +1,7 @@
|
|||||||
#include <qpdf/Pl_Flate.hh>
|
#include <qpdf/Pl_Flate.hh>
|
||||||
#include <qpdf/Pl_StdioFile.hh>
|
#include <qpdf/Pl_StdioFile.hh>
|
||||||
#include <qpdf/QUtil.hh>
|
#include <qpdf/QUtil.hh>
|
||||||
|
#include <qpdf/QPDF.hh>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -41,7 +42,8 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
if ((argc == 2) && (strcmp(argv[1], "--version") == 0))
|
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);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user