mirror of
https://github.com/tumic0/pbf2png.git
synced 2024-11-23 19:35:54 +01:00
Added missing command line parameters parse error reporting
This commit is contained in:
parent
62ed8a7a84
commit
1eb9128b36
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user