File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ int main(int argc, char **argv)
62
62
}
63
63
}
64
64
65
- if (argc < 2 ) {
65
+ if (argc < 2 || (firstArgument. startsWith ( " - " )) ) {
66
66
qInfo () << " " ;
67
67
qInfo () << " Usage: linuxdeployqt <app-binary|desktop file> [options]" ;
68
68
qInfo () << " " ;
@@ -365,12 +365,10 @@ int main(int argc, char **argv)
365
365
}
366
366
367
367
// Check arguments
368
- for (int i = 1 ; i < argc; ++i) {
368
+ for (int i = 2 ; i < argc; ++i) {
369
369
QByteArray argument = QByteArray (argv[i]);
370
370
371
- if (!argument.startsWith (" -" )) {
372
- continue ;
373
- } else if (argument == QByteArray (" -no-plugins" )) {
371
+ if (argument == QByteArray (" -no-plugins" )) {
374
372
LogDebug () << " Argument found:" << argument;
375
373
plugins = false ;
376
374
} else if (argument == QByteArray (" -appimage" )) {
You can’t perform that action at this time.
0 commit comments