diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-06-18 16:33:27 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-06-18 16:38:50 +0200 |
commit | e0720eaa78a56dafe5f5e572387b3a0cc8c88ec9 (patch) | |
tree | b4a0c2b0a38c723a5e33c06e1f4122e983fdb146 /libqpdf/QPDFArgParser.cc | |
parent | 83be2191b4f3eb8906160d61f61cae48532ee651 (diff) | |
download | qpdf-e0720eaa78a56dafe5f5e572387b3a0cc8c88ec9.tar.zst |
Use the default logger for other writes to stdout/stderr
When there is no context for writing output or error messages, use the
default logger.
Diffstat (limited to 'libqpdf/QPDFArgParser.cc')
-rw-r--r-- | libqpdf/QPDFArgParser.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libqpdf/QPDFArgParser.cc b/libqpdf/QPDFArgParser.cc index 63197684..c58edec7 100644 --- a/libqpdf/QPDFArgParser.cc +++ b/libqpdf/QPDFArgParser.cc @@ -1,6 +1,7 @@ #include <qpdf/QPDFArgParser.hh> #include <qpdf/QIntC.hh> +#include <qpdf/QPDFLogger.hh> #include <qpdf/QPDFUsage.hh> #include <qpdf/QTC.hh> #include <qpdf/QUtil.hh> @@ -235,7 +236,7 @@ QPDFArgParser::argCompletionZsh() void QPDFArgParser::argHelp(std::string const& p) { - std::cout << getHelp(p); + QPDFLogger::defaultLogger()->info(getHelp(p)); exit(0); } |