Merge pull request #1 from JulianGro/fix-replace-avatar-url-option

fix replace avatar url option according to coding standards
This commit is contained in:
Dale Glass 2022-06-28 00:48:55 +02:00 committed by GitHub
commit f4c8b00f40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

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

View file

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