Add show-vote-account command (#3814)

This commit is contained in:
Michael Vines
2019-04-17 07:45:07 -07:00
committed by GitHub
parent b9bb5af4a5
commit aa6c82cfdc
3 changed files with 66 additions and 11 deletions

View File

@@ -268,6 +268,19 @@ fn main() -> Result<(), Box<dyn error::Error>> {
),
)
.subcommand(
SubCommand::with_name("show-vote-account")
.about("Show the contents of a vote account")
.arg(
Arg::with_name("voting_account_id")
.index(1)
.value_name("PUBKEY")
.takes_value(true)
.required(true)
.validator(is_pubkey)
.help("Vote account pubkey"),
)
)
.subcommand(
SubCommand::with_name("deploy")
.about("Deploy a program")