token-cli: Use clap-utils fee payer arg
This commit is contained in:
parent
f21c71ed83
commit
6096e7b554
|
@ -8,6 +8,7 @@ use solana_account_decoder::{
|
||||||
UiAccountData,
|
UiAccountData,
|
||||||
};
|
};
|
||||||
use solana_clap_utils::{
|
use solana_clap_utils::{
|
||||||
|
fee_payer::fee_payer_arg,
|
||||||
input_parsers::{pubkey_of_signer, signer_of},
|
input_parsers::{pubkey_of_signer, signer_of},
|
||||||
input_validators::{is_amount, is_url, is_valid_pubkey, is_valid_signer},
|
input_validators::{is_amount, is_url, is_valid_pubkey, is_valid_signer},
|
||||||
keypair::DefaultSigner,
|
keypair::DefaultSigner,
|
||||||
|
@ -611,19 +612,7 @@ fn main() {
|
||||||
Defaults to the client keypair.",
|
Defaults to the client keypair.",
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(fee_payer_arg().global(true))
|
||||||
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.",
|
|
||||||
),
|
|
||||||
)
|
|
||||||
.subcommand(SubCommand::with_name("create-token").about("Create a new token")
|
.subcommand(SubCommand::with_name("create-token").about("Create a new token")
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("decimals")
|
Arg::with_name("decimals")
|
||||||
|
|
Loading…
Reference in New Issue