Add solana-wallet balance <PUBKEY>

This commit is contained in:
Greg Fitzgerald
2019-03-20 10:44:16 -06:00
parent 071b1d8b77
commit 4247fa946e
2 changed files with 28 additions and 12 deletions

View File

@@ -169,7 +169,18 @@ fn main() -> Result<(), Box<dyn error::Error>> {
.help("The number of lamports to request"),
),
)
.subcommand(SubCommand::with_name("balance").about("Get your balance"))
.subcommand(
SubCommand::with_name("balance")
.about("Get your balance")
.arg(
Arg::with_name("pubkey")
.index(1)
.value_name("PUBKEY")
.takes_value(true)
.validator(is_pubkey)
.help("The public key of the balance to check"),
),
)
.subcommand(
SubCommand::with_name("cancel")
.about("Cancel a transfer")