Remove get-/show- prefix from cli commands

This commit is contained in:
Michael Vines
2020-01-20 23:06:47 -07:00
parent 80da552834
commit 356f246a74
22 changed files with 268 additions and 252 deletions

View File

@@ -20,7 +20,7 @@ fn main() -> Result<(), Box<dyn error::Error>> {
.version(solana_clap_utils::version!())
.setting(AppSettings::SubcommandRequiredElseHelp)
.subcommand(
SubCommand::with_name("get-rpc-url")
SubCommand::with_name("rpc-url")
.about("Get an RPC URL for the cluster")
.arg(
Arg::with_name("entrypoint")
@@ -243,7 +243,7 @@ fn main() -> Result<(), Box<dyn error::Error>> {
}
}
}
("get-rpc-url", Some(matches)) => {
("rpc-url", Some(matches)) => {
let any = matches.is_present("any");
let all = matches.is_present("all");
let entrypoint_addr = parse_entrypoint(&matches);