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, // 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"
); );