@@ -67,23 +67,24 @@ int main(int argc, char **argv)
67
67
qInfo () << " Usage: linuxdeployqt <app-binary|desktop file> [options]" ;
68
68
qInfo () << " " ;
69
69
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." ;
76
75
qInfo () << " -executable=<path> : Let the given executable use the deployed libraries" ;
77
76
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." ;
83
77
qInfo () << " -extra-plugins=<list> : List of extra plugins which should be deployed," ;
84
78
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." ;
87
88
qInfo () << " -version : Print version statement and exit." ;
88
89
qInfo () << " " ;
89
90
qInfo () << " linuxdeployqt takes an application as input and makes it" ;
@@ -363,8 +364,10 @@ int main(int argc, char **argv)
363
364
}
364
365
}
365
366
367
+ // Check arguments
366
368
for (int i = 2 ; i < argc; ++i) {
367
369
QByteArray argument = QByteArray (argv[i]);
370
+
368
371
if (argument == QByteArray (" -no-plugins" )) {
369
372
LogDebug () << " Argument found:" << argument;
370
373
plugins = false ;
@@ -423,14 +426,17 @@ int main(int argc, char **argv)
423
426
LogDebug () << " Argument found:" << argument;
424
427
int index = argument.indexOf (" =" );
425
428
excludeLibs = QString (argument.mid (index + 1 )).split (" ," );
429
+ } else if (argument == QByteArray (" -show-exclude-libs" )) {
430
+ qInfo () << EXCLUDELIST;
431
+ return 0 ;
426
432
} else if (argument.startsWith (" --" )) {
427
433
LogError () << " Error: arguments must not start with --, only -:" << argument << " \n " ;
428
434
return 1 ;
429
435
} else {
430
436
LogError () << " Unknown argument:" << argument << " \n " ;
431
437
return 1 ;
432
438
}
433
- }
439
+ }
434
440
435
441
if (appimage) {
436
442
if (checkAppImagePrerequisites (appDirPath) == false ){
0 commit comments