diff --git a/src/main.cpp b/src/main.cpp index 58e46ca8..7de59608 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -202,6 +202,10 @@ int main(int argc, char** argv) applyCliArgs(settings); auto files = parser.positionalArguments(); + + // remove empty arguments that may be added by tools calling HotSpot + files.removeAll(QLatin1String("")); + if (files.size() != 1 && parser.isSet(exportTo)) { QTextStream err(stderr); err << QCoreApplication::translate("main", "Error: expected a single input file to convert, instead of %1.",