]> nmode's Git Repositories - signal-cli/commitdiff
Add --mobilecoin-address as alias to updateProfile
authorAsamK <asamk@gmx.de>
Thu, 30 Jan 2025 19:18:07 +0000 (20:18 +0100)
committerAsamK <asamk@gmx.de>
Thu, 30 Jan 2025 19:18:07 +0000 (20:18 +0100)
Closes #1638

client/src/cli.rs
man/signal-cli.1.adoc
src/main/java/org/asamk/signal/commands/UpdateProfileCommand.java

index a64ab51173661d9fe73eff8f40d2b0d19268587c..4ff9d458861cb355c933f541183a20617ac7b59d 100644 (file)
@@ -413,7 +413,7 @@ pub enum CliCommands {
         #[arg(long = "about-emoji")]
         about_emoji: Option<String>,
 
-        #[arg(long = "mobile-coin-address")]
+        #[arg(long = "mobile-coin-address", visible_alias = "mobilecoin-address")]
         mobile_coin_address: Option<String>,
 
         #[arg(long)]
index 48b821dfc88e0edb6fa58f345e2b1d296d64f335..32321095775d53754b0421d9ef6a8c44668edec8 100644 (file)
@@ -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
index b122f58c6702fd54a7ef7e878eec3e5bbf049a0c..7a3281fe7f1878cbc90ed24f5cdc5ffc9b95c079 100644 (file)
@@ -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");