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)
6262 }
6363 }
6464
65- if (argc < 2 ) {
65+ if (argc < 2 || (firstArgument. startsWith ( " - " )) ) {
6666 qInfo () << " " ;
6767 qInfo () << " Usage: linuxdeployqt <app-binary|desktop file> [options]" ;
6868 qInfo () << " " ;
@@ -365,12 +365,10 @@ int main(int argc, char **argv)
365365 }
366366
367367 // Check arguments
368- for (int i = 1 ; i < argc; ++i) {
368+ for (int i = 2 ; i < argc; ++i) {
369369 QByteArray argument = QByteArray (argv[i]);
370370
371- if (!argument.startsWith (" -" )) {
372- continue ;
373- } else if (argument == QByteArray (" -no-plugins" )) {
371+ if (argument == QByteArray (" -no-plugins" )) {
374372 LogDebug () << " Argument found:" << argument;
375373 plugins = false ;
376374 } else if (argument == QByteArray (" -appimage" )) {
You can’t perform that action at this time.
0 commit comments