From b11e5dfccbafe13f033636b63488e21916d3af9d Mon Sep 17 00:00:00 2001 From: samkim-crypto Date: Tue, 12 Sep 2023 20:17:47 -0700 Subject: [PATCH] [token-cli] Make owner address argument in `account-info` command to be non-positional (#5215) remove long name for account info command --- token/cli/src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/token/cli/src/main.rs b/token/cli/src/main.rs index 9edcc7c468d..c900741abd6 100644 --- a/token/cli/src/main.rs +++ b/token/cli/src/main.rs @@ -3874,7 +3874,11 @@ fn app<'a, 'b>( To query a specific account, use the `--address` parameter instead"), ) .arg( - owner_address_arg() + Arg::with_name(OWNER_ADDRESS_ARG.name) + .takes_value(true) + .value_name("OWNER_ADDRESS") + .validator(is_valid_signer) + .help(OWNER_ADDRESS_ARG.help) .index(2) .conflicts_with("address") .help("Owner of the associated account for the specified token. \