Cleanup CLI types (#8888)

This commit is contained in:
Greg Fitzgerald 2020-03-16 12:27:09 -06:00 committed by GitHub
parent dc347dd3d7
commit 563da2bb18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -2402,7 +2402,7 @@ pub fn app<'ab, 'v>(name: &str, about: &'ab str, version: &'v str) -> App<'ab, '
.arg(
Arg::with_name("signer")
.index(1)
.value_name("URL")
.value_name("KEYPAIR")
.takes_value(true)
.required(true)
.validator(is_valid_signer)

View File

@ -184,7 +184,7 @@ fn main() -> Result<(), Box<dyn error::Error>> {
Arg::with_name("keypair")
.short("k")
.long("keypair")
.value_name("FILEPATH")
.value_name("KEYPAIR")
.global(true)
.takes_value(true)
.help("Filepath or URL to a keypair"),

View File

@ -224,9 +224,9 @@ fn main() -> Result<(), Box<dyn error::Error>> {
.arg(
Arg::with_name("keypair")
.index(2)
.value_name("FILEPATH")
.value_name("KEYPAIR")
.takes_value(true)
.help("Path to keypair file"),
.help("Filepath or URL to a keypair"),
)
)
.subcommand(
@ -321,9 +321,9 @@ fn main() -> Result<(), Box<dyn error::Error>> {
.arg(
Arg::with_name("keypair")
.index(1)
.value_name("FILEPATH")
.value_name("KEYPAIR")
.takes_value(true)
.help("Path to keypair file or remote wallet"),
.help("Filepath or URL to a keypair"),
)
.arg(
Arg::with_name(SKIP_SEED_PHRASE_VALIDATION_ARG.name)