fix replace avatar url option according to coding standards

This commit is contained in:
Julian Groß 2022-06-26 14:32:31 +02:00
parent 76efc414f1
commit 661b7c3a7d
2 changed files with 3 additions and 3 deletions

View file

@ -1453,8 +1453,8 @@ Application::Application(
// If someone specifies both --avatarURL and --replaceAvatarURL, // If someone specifies both --avatarURL and --replaceAvatarURL,
// the replaceAvatarURL wins. So only set the _overrideUrl if this // the replaceAvatarURL wins. So only set the _overrideUrl if this
// does have a non-empty string. // does have a non-empty string.
if (parser.isSet("replace-avatar-url")) { if (parser.isSet("replaceAvatarURL")) {
QString replaceURL = parser.value("replace-avatar-url"); QString replaceURL = parser.value("replaceAvatarURL");
_avatarOverrideUrl = QUrl::fromUserInput(replaceURL); _avatarOverrideUrl = QUrl::fromUserInput(replaceURL);
_saveAvatarOverrideUrl = true; _saveAvatarOverrideUrl = true;
} }

View file

@ -161,7 +161,7 @@ int main(int argc, const char* argv[]) {
"url" "url"
); );
QCommandLineOption replaceAvatarURLOption( QCommandLineOption replaceAvatarURLOption(
"replace-avatar-url", "replaceAvatarURL",
"Replaces the avatar U.R.L. When used with --avatarURL, this takes precedence.", "Replaces the avatar U.R.L. When used with --avatarURL, this takes precedence.",
"url" "url"
); );