@@ -67,23 +67,24 @@ int main(int argc, char **argv)
6767 qInfo () << " Usage: linuxdeployqt <app-binary|desktop file> [options]" ;
6868 qInfo () << " " ;
6969 qInfo () << " Options:" ;
70- qInfo () << " -verbose=<0-3> : 0 = no output, 1 = error/warning (default)," ;
71- qInfo () << " 2 = normal, 3 = debug" ;
72- qInfo () << " -no-plugins : Skip plugin deployment" ;
73- qInfo () << " -appimage : Create an AppImage (implies -bundle-non-qt-libs)" ;
74- qInfo () << " -no-strip : Don't run 'strip' on the binaries" ;
75- qInfo () << " -bundle-non-qt-libs : Also bundle non-core, non-Qt libraries" ;
70+ qInfo () << " -always-overwrite : Copy files even if the target file exists." ;
71+ qInfo () << " -appimage : Create an AppImage (implies -bundle-non-qt-libs)." ;
72+ qInfo () << " -bundle-non-qt-libs : Also bundle non-core, non-Qt libraries." ;
73+ qInfo () << " -exclude-libs=<list> : List of libraries which should be excluded," ;
74+ qInfo () << " separated by comma." ;
7675 qInfo () << " -executable=<path> : Let the given executable use the deployed libraries" ;
7776 qInfo () << " too" ;
78- qInfo () << " -qmldir=<path> : Scan for QML imports in the given path" ;
79- qInfo () << " -always-overwrite : Copy files even if the target file exists" ;
80- qInfo () << " -qmake=<path> : The qmake executable to use" ;
81- qInfo () << " -no-translations : Skip deployment of translations." ;
82- qInfo () << " -no-copy-copyright-files : Skip deployment of copyright files." ;
8377 qInfo () << " -extra-plugins=<list> : List of extra plugins which should be deployed," ;
8478 qInfo () << " separated by comma." ;
85- qInfo () << " -exclude-libs=<list> : List of libraries which should be excluded," ;
86- qInfo () << " separated by comma." ;
79+ qInfo () << " -no-copy-copyright-files : Skip deployment of copyright files." ;
80+ qInfo () << " -no-plugins : Skip plugin deployment." ;
81+ qInfo () << " -no-strip : Don't run 'strip' on the binaries." ;
82+ qInfo () << " -no-translations : Skip deployment of translations." ;
83+ qInfo () << " -qmake=<path> : The qmake executable to use." ;
84+ qInfo () << " -qmldir=<path> : Scan for QML imports in the given path." ;
85+ qInfo () << " -show-exclude-libs : Print exclude libraries list." ;
86+ qInfo () << " -verbose=<0-3> : 0 = no output, 1 = error/warning (default)," ;
87+ qInfo () << " 2 = normal, 3 = debug." ;
8788 qInfo () << " -version : Print version statement and exit." ;
8889 qInfo () << " " ;
8990 qInfo () << " linuxdeployqt takes an application as input and makes it" ;
@@ -363,8 +364,10 @@ int main(int argc, char **argv)
363364 }
364365 }
365366
367+ // Check arguments
366368 for (int i = 2 ; i < argc; ++i) {
367369 QByteArray argument = QByteArray (argv[i]);
370+
368371 if (argument == QByteArray (" -no-plugins" )) {
369372 LogDebug () << " Argument found:" << argument;
370373 plugins = false ;
@@ -423,14 +426,17 @@ int main(int argc, char **argv)
423426 LogDebug () << " Argument found:" << argument;
424427 int index = argument.indexOf (" =" );
425428 excludeLibs = QString (argument.mid (index + 1 )).split (" ," );
429+ } else if (argument == QByteArray (" -show-exclude-libs" )) {
430+ qInfo () << EXCLUDELIST;
431+ return 0 ;
426432 } else if (argument.startsWith (" --" )) {
427433 LogError () << " Error: arguments must not start with --, only -:" << argument << " \n " ;
428434 return 1 ;
429435 } else {
430436 LogError () << " Unknown argument:" << argument << " \n " ;
431437 return 1 ;
432438 }
433- }
439+ }
434440
435441 if (appimage) {
436442 if (checkAppImagePrerequisites (appDirPath) == false ){
0 commit comments