Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename mobile-coin-address to mobilecoin-address. #1638

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

christian-oudard
Copy link

The name is MobileCoin, not "Mobile Coin".

@AsamK
Copy link
Owner

AsamK commented Nov 29, 2024

Renaming the parameter is a backward incompatible change.
You could add it as an additional parameter, to still support the old one: `subparser.addArgument("--mobile-coin-address", "--mobilecoin-address")

@christian-oudard
Copy link
Author

I put an alias in to --mobile-coin-address. What about cli.rs? Would that need an alias too? I don't actually understand how the Rust code and the Java code relate to each other.

@@ -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.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to add a semicolon here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants