diff --git a/tools/linuxdeployqt/main.cpp b/tools/linuxdeployqt/main.cpp index 51d4660..95ce4dd 100644 --- a/tools/linuxdeployqt/main.cpp +++ b/tools/linuxdeployqt/main.cpp @@ -34,6 +34,7 @@ #include #include #include +#include "excludelist.h" int main(int argc, char **argv) { @@ -60,6 +61,10 @@ int main(int argc, char **argv) // can just exit normally, version has been printed above return 0; } + if (argument == QByteArray("-show-exclude-libs")) { + qInfo() << generatedExcludelist; + return 0; + } } if (argc < 2 || (firstArgument.startsWith("-"))) { @@ -426,9 +431,6 @@ int main(int argc, char **argv) LogDebug() << "Argument found:" << argument; int index = argument.indexOf("="); excludeLibs = QString(argument.mid(index + 1)).split(","); - } else if (argument == QByteArray("-show-exclude-libs")) { - qInfo() << EXCLUDELIST; - return 0; } else if (argument.startsWith("--")) { LogError() << "Error: arguments must not start with --, only -:" << argument << "\n"; return 1;