From 1eb9128b36f4312f993c8490d0d162cb3dcf0154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 10 Dec 2023 10:54:28 +0100 Subject: [PATCH] Added missing command line parameters parse error reporting --- pbf2png.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pbf2png.cpp b/pbf2png.cpp index 7001310..864cb53 100644 --- a/pbf2png.cpp +++ b/pbf2png.cpp @@ -67,11 +67,13 @@ int App::run() parser.addOption(mask); parser.addOption(outdir); parser.addPositionalArgument("DIR", "PBF Tiles directory"); - if (!parser.parse(arguments())) - return -1; - QTextStream err(stderr); + if (!parser.parse(arguments())) { + err << parser.errorText() << "\n"; + return -1; + } + const QStringList args = parser.positionalArguments(); if (!args.size()) { err << parser.helpText();