diff --git a/client/src/cli.rs b/client/src/cli.rs index a64ab5117..e79f2db82 100644 --- a/client/src/cli.rs +++ b/client/src/cli.rs @@ -413,8 +413,8 @@ pub enum CliCommands { #[arg(long = "about-emoji")] about_emoji: Option, - #[arg(long = "mobile-coin-address")] - mobile_coin_address: Option, + #[arg(long = "mobilecoin-address")] + mobilecoin_address: Option, #[arg(long)] avatar: Option, diff --git a/client/src/main.rs b/client/src/main.rs index 35c1ab229..a8c14bb0c 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -371,7 +371,7 @@ async fn handle_command( family_name, about, about_emoji, - mobile_coin_address, + mobilecoin_address, avatar, remove_avatar, } => { @@ -382,7 +382,7 @@ async fn handle_command( family_name, about, about_emoji, - mobile_coin_address, + mobilecoin_address, avatar, remove_avatar, ) diff --git a/man/signal-cli.1.adoc b/man/signal-cli.1.adoc index a892a296f..b87aad84e 100644 --- a/man/signal-cli.1.adoc +++ b/man/signal-cli.1.adoc @@ -651,7 +651,7 @@ Path to the new avatar image file. *--remove-avatar*:: Remove the avatar -*--mobile-coin-address*:: +*--mobilecoin-address*:: New MobileCoin address (Base64 encoded public address) === updateContact diff --git a/run_tests.sh b/run_tests.sh index 0e5ff4be0..23b426a04 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -209,7 +209,7 @@ for OUTPUT in "plain-text" "json"; do done ## Profile -run_main -a "$NUMBER_1" updateProfile --given-name=GIVEN --family-name=FAMILY --about=ABOUT --about-emoji=EMOJI --avatar=LICENSE --mobile-coin-address="YWJjCg==" +run_main -a "$NUMBER_1" updateProfile --given-name=GIVEN --family-name=FAMILY --about=ABOUT --about-emoji=EMOJI --avatar=LICENSE --mobilecoin-address="YWJjCg==" ## Provisioning link "$NUMBER_1" diff --git a/src/main/java/org/asamk/signal/commands/UpdateProfileCommand.java b/src/main/java/org/asamk/signal/commands/UpdateProfileCommand.java index cea2da0df..ec0aaf13b 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 void attachToSubparser(final Subparser subparser) { 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("--mobilecoin-address").help("New MobileCoin address (Base64 encoded public address)"); + subparser.addArgument("--mobile-coin-address", "--mobilecoin-address") // Support legacy option name. final var avatarOptions = subparser.addMutuallyExclusiveGroup(); avatarOptions.addArgument("--avatar").help("Path to new profile avatar"); @@ -42,7 +43,7 @@ public void handleCommand( var familyName = ns.getString("family-name"); var about = ns.getString("about"); var aboutEmoji = ns.getString("about-emoji"); - var mobileCoinAddressString = ns.getString("mobile-coin-address"); + var mobileCoinAddressString = ns.getString("mobilecoin-address"); var mobileCoinAddress = mobileCoinAddressString == null ? null : Base64.getDecoder().decode(mobileCoinAddressString);