diff --git a/src/main.cpp b/src/main.cpp index 1dcb4bb9e..f22af57b6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -66,13 +66,13 @@ int main(int argc, char *argv[]) parser.addHelpOption(); parser.addVersionOption(); parser.addPositionalArgument("uri", QObject::tr("Tox URI to parse")); - parser.addOption(QCommandLineOption("P", QObject::tr("Starts new instance and loads specified profile."), QObject::tr("profile"))); + parser.addOption(QCommandLineOption("p", QObject::tr("Starts new instance and loads specified profile."), QObject::tr("profile"))); parser.process(a); Settings::getInstance(); // Build our Settings singleton as soon as QApplication is ready, not before - if (parser.isSet("P")) + if (parser.isSet("p")) { - QString profile = parser.value("P"); + QString profile = parser.value("p"); if (QDir(Settings::getSettingsDirPath()).exists(profile + ".tox")) { qDebug() << "Setting profile to" << profile; @@ -80,7 +80,7 @@ int main(int argc, char *argv[]) } else { - qWarning() << "Error: -P profile" << profile + ".tox" << "doesn't exist"; + qWarning() << "Error: -p profile" << profile + ".tox" << "doesn't exist"; return EXIT_FAILURE; } }