diff --git a/sui/src/wallet_commands.rs b/sui/src/wallet_commands.rs index f129e8d9ab593..edd4a8944091a 100644 --- a/sui/src/wallet_commands.rs +++ b/sui/src/wallet_commands.rs @@ -95,11 +95,16 @@ pub enum WalletCommands { #[clap(long)] function: Identifier, /// Function name in module - #[clap(long, parse(try_from_str = parse_type_tag))] + #[clap( + long, + parse(try_from_str = parse_type_tag), + multiple_occurrences = false, + multiple_values = true + )] type_args: Vec, /// Simplified ordered args like in the function syntax /// ObjectIDs, Addresses must be hex strings - #[clap(long)] + #[clap(long, multiple_occurrences = false, multiple_values = true)] args: Vec, /// ID of the gas object for gas payment, in 20 bytes Hex string #[clap(long)] @@ -168,7 +173,7 @@ pub enum WalletCommands { #[clap(long)] coin_id: ObjectID, /// Amount to split out from the coin - #[clap(long)] + #[clap(long, multiple_occurrences = false, multiple_values = true)] amounts: Vec, /// ID of the gas object for gas payment, in 20 bytes Hex string /// If not provided, a gas object with at least gas_budget value will be selected