Cleanup CLI types (#8888) (#8890)

automerge
This commit is contained in:
mergify[bot]
2020-03-16 12:28:22 -07:00
committed by GitHub
parent 0c804e2ef2
commit 8115a962e9
3 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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