Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Cinque <[email protected]>
  • Loading branch information
samkim-crypto and joncinque authored Oct 18, 2023
1 parent 624a51d commit 669a6c6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions token/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4657,12 +4657,14 @@ fn app<'a, 'b>(
SubCommand::with_name(CommandName::ConfigureConfidentialTransferAccount.into())
.about("Configure confidential transfers for token account")
.arg(
Arg::with_name("account")
Arg::with_name("address")
.long("address")
.validator(is_valid_pubkey)
.value_name("TOKEN_ACCOUNT_ADDRESS")
.takes_value(true)
.index(1)
.help("The address of the token account to configure confidential transfers for")
.conflicts_with("token")
.help("The address of the token account to configure confidential transfers for \
[default: owner's associated token account]")
)
.arg(
owner_address_arg()
Expand All @@ -4673,6 +4675,8 @@ fn app<'a, 'b>(
.validator(is_valid_pubkey)
.value_name("TOKEN_MINT_ADDRESS")
.takes_value(true)
.index(1)
.required_unless("address")
.help("The token address with confidential transfers enabled"),
)
.arg(
Expand Down

0 comments on commit 669a6c6

Please sign in to comment.