diff --git a/token/cli/src/config.rs b/token/cli/src/config.rs index c6cab816b4d..89aa4c3ea4a 100644 --- a/token/cli/src/config.rs +++ b/token/cli/src/config.rs @@ -296,9 +296,18 @@ impl<'a> Config<'a> { (default_program_id, false) }; - let nonce_blockhash = value_of(matches, BLOCKHASH_ARG.name); - let compute_unit_price = value_of(matches, COMPUTE_UNIT_PRICE_ARG.name); - let compute_unit_limit = value_of(matches, COMPUTE_UNIT_LIMIT_ARG.name); + let compute_unit_price = matches + .try_get_one::(COMPUTE_UNIT_PRICE_ARG.name) + .ok() + .flatten() + .copied(); + + let compute_unit_limit = matches + .try_get_one::(COMPUTE_UNIT_LIMIT_ARG.name) + .ok() + .flatten() + .copied(); + let nonce_blockhash = matches .try_get_one::(BLOCKHASH_ARG.name) .ok()