From 6096e7b5546d0f86af6ce21e9498169980321ff9 Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Fri, 23 Oct 2020 18:42:27 -0600 Subject: [PATCH] token-cli: Use clap-utils fee payer arg --- token/cli/src/main.rs | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/token/cli/src/main.rs b/token/cli/src/main.rs index 29945dbc..0b62eb0f 100644 --- a/token/cli/src/main.rs +++ b/token/cli/src/main.rs @@ -8,6 +8,7 @@ use solana_account_decoder::{ UiAccountData, }; use solana_clap_utils::{ + fee_payer::fee_payer_arg, input_parsers::{pubkey_of_signer, signer_of}, input_validators::{is_amount, is_url, is_valid_pubkey, is_valid_signer}, keypair::DefaultSigner, @@ -611,19 +612,7 @@ fn main() { Defaults to the client keypair.", ), ) - .arg( - Arg::with_name("fee_payer") - .long("fee-payer") - .value_name("KEYPAIR") - .validator(is_valid_signer) - .takes_value(true) - .global(true) - .help( - "Specify the fee-payer account. \ - This may be a keypair file, the ASK keyword. \ - Defaults to the client keypair.", - ), - ) + .arg(fee_payer_arg().global(true)) .subcommand(SubCommand::with_name("create-token").about("Create a new token") .arg( Arg::with_name("decimals")