From a6ec71dc315e5b259a7bfe70cad46b7780b73fa9 Mon Sep 17 00:00:00 2001 From: AsamK Date: Thu, 30 Jan 2025 20:18:07 +0100 Subject: [PATCH] Add --mobilecoin-address as alias to updateProfile Closes #1638 --- client/src/cli.rs | 2 +- man/signal-cli.1.adoc | 2 +- .../java/org/asamk/signal/commands/UpdateProfileCommand.java | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/cli.rs b/client/src/cli.rs index a64ab511..4ff9d458 100644 --- a/client/src/cli.rs +++ b/client/src/cli.rs @@ -413,7 +413,7 @@ pub enum CliCommands { #[arg(long = "about-emoji")] about_emoji: Option, - #[arg(long = "mobile-coin-address")] + #[arg(long = "mobile-coin-address", visible_alias = "mobilecoin-address")] mobile_coin_address: Option, #[arg(long)] diff --git a/man/signal-cli.1.adoc b/man/signal-cli.1.adoc index 48b821df..32321095 100644 --- a/man/signal-cli.1.adoc +++ b/man/signal-cli.1.adoc @@ -657,7 +657,7 @@ Path to the new avatar image file. *--remove-avatar*:: Remove the avatar -*--mobile-coin-address*:: +*--mobile-coin-address*, **--mobilecoin-address**:: New MobileCoin address (Base64 encoded public address) === updateContact diff --git a/src/main/java/org/asamk/signal/commands/UpdateProfileCommand.java b/src/main/java/org/asamk/signal/commands/UpdateProfileCommand.java index b122f58c..7a3281fe 100644 --- a/src/main/java/org/asamk/signal/commands/UpdateProfileCommand.java +++ b/src/main/java/org/asamk/signal/commands/UpdateProfileCommand.java @@ -27,7 +27,8 @@ public class UpdateProfileCommand implements JsonRpcLocalCommand { subparser.addArgument("--family-name").help("New profile family name (optional)"); subparser.addArgument("--about").help("New profile about text"); subparser.addArgument("--about-emoji").help("New profile about emoji"); - subparser.addArgument("--mobile-coin-address").help("New MobileCoin address (Base64 encoded public address)"); + subparser.addArgument("--mobile-coin-address", "--mobilecoin-address") + .help("New MobileCoin address (Base64 encoded public address)"); final var avatarOptions = subparser.addMutuallyExclusiveGroup(); avatarOptions.addArgument("--avatar").help("Path to new profile avatar"); -- 2.50.1