Merge pull request #1628 from Nheko-Reborn/profile-arg

Fix profile argument parsing bug
This commit is contained in:
DeepBlueV7.X 2023-11-30 01:23:04 +00:00 committed by GitHub
commit ed6abe989f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -185,7 +185,7 @@ main(int argc, char *argv[])
if (arg.startsWith(QLatin1String("--profile="))) {
arg.remove(QStringLiteral("--profile="));
userdata = arg;
} else if (arg.startsWith(QLatin1String("--p="))) {
} else if (arg.startsWith(QLatin1String("-p="))) {
arg.remove(QStringLiteral("-p="));
userdata = arg;
} else if (arg == QLatin1String("--profile") || arg == QLatin1String("-p")) {