Browse Source

Merge pull request #257 from probonopd/TheAssassin/improve-argument-parser

Improve argument parser user experience
master
TheAssassin 7 years ago
committed by GitHub
parent
commit
a64cfca1f3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      tools/linuxdeployqt/main.cpp

6
tools/linuxdeployqt/main.cpp

@ -416,11 +416,11 @@ int main(int argc, char **argv)
LogDebug() << "Argument found:" << argument; LogDebug() << "Argument found:" << argument;
int index = argument.indexOf("="); int index = argument.indexOf("=");
extraQtPlugins = QString(argument.mid(index + 1)).split(","); extraQtPlugins = QString(argument.mid(index + 1)).split(",");
} else if (argument.startsWith("-")) { } else if (argument.startsWith("--")) {
LogError() << "Error: arguments must not start with --, only -" << "\n"; LogError() << "Error: arguments must not start with --, only -:" << argument << "\n";
return 1; return 1;
} else { } else {
LogError() << "Unknown argument" << argument << "\n"; LogError() << "Unknown argument:" << argument << "\n";
return 1; return 1;
} }
} }

Loading…
Cancel
Save